copyWith method
FlutstrapButton
copyWith({
- Key? key,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool? autofocus,
- Clip? clipBehavior,
- FSButtonVariant? variant,
- FSButtonSize? size,
- bool? disabled,
- bool? loading,
- Widget? child,
- String? text,
- Widget? leading,
- Widget? trailing,
- bool? expanded,
Implementation
FlutstrapButton copyWith({
Key? key,
VoidCallback? onPressed,
VoidCallback? onLongPress,
ButtonStyle? style,
FocusNode? focusNode,
bool? autofocus,
Clip? clipBehavior,
FSButtonVariant? variant,
FSButtonSize? size,
bool? disabled,
bool? loading,
Widget? child,
String? text,
Widget? leading,
Widget? trailing,
bool? expanded,
}) {
return FlutstrapButton(
key: key ?? this.key,
onPressed: onPressed ?? this.onPressed,
onLongPress: onLongPress ?? this.onLongPress,
style: style ?? this.style,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
clipBehavior: clipBehavior ?? this.clipBehavior,
variant: variant ?? this.variant,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
loading: loading ?? this.loading,
child: child ?? this.child,
text: text ?? this.text,
leading: leading ?? this.leading,
trailing: trailing ?? this.trailing,
expanded: expanded ?? this.expanded,
);
}