copyWith method

TextSelectionToolbarTextButton copyWith({
  1. Widget? child,
  2. VoidCallback? onPressed,
  3. EdgeInsets? padding,
  4. 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,
  );
}