copyWith method
- Widget? child,
- VoidCallback? onPressed,
- EdgeInsets? padding,
- AlignmentGeometry? alignment,
Returns a copy of the current TextSelectionToolbarTextButton instance with specific overrides.
Implementation
TextSelectionToolbarTextButton copyWith({
Widget? child,
VoidCallback? onPressed,
EdgeInsets? padding,
AlignmentGeometry? alignment,
}) {
return TextSelectionToolbarTextButton(
onPressed: onPressed ?? this.onPressed,
padding: padding ?? this.padding,
alignment: alignment ?? this.alignment,
child: child ?? this.child,
);
}