copyWith method
OutlinedButton
copyWith(
{ - Key? key,
- void onPressed()?,
- void onLongPress()?,
- void onHover(
- bool
)?,
- void onFocusChange(
- bool
)?,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool? autofocus,
- Clip? clipBehavior,
- Widget? child,
})
Implementation
OutlinedButton copyWith({
Key? key,
void Function()? onPressed,
void Function()? onLongPress,
void Function(bool)? onHover,
void Function(bool)? onFocusChange,
ButtonStyle? style,
FocusNode? focusNode,
bool? autofocus,
Clip? clipBehavior,
Widget? child,
}) {
return OutlinedButton(
key: key ?? this.key,
onPressed: onPressed ?? this.onPressed,
onLongPress: onLongPress ?? this.onLongPress,
onHover: onHover ?? this.onHover,
onFocusChange: onFocusChange ?? this.onFocusChange,
style: style ?? this.style,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
clipBehavior: clipBehavior ?? this.clipBehavior,
child: child ?? this.child!,
);
}