copyWith method
FloaticaActionButton
copyWith({
- Widget? icon,
- VoidCallback? onTap,
- double? size,
- Color? backgroundColor,
- Color? foregroundColor,
- Object? heroTag,
- String? tooltip,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- MouseCursor? mouseCursor,
- bool? mini,
- ShapeBorder? shape,
- Clip? clipBehavior,
- bool? isExtended,
- FocusNode? focusNode,
- bool? autofocus,
- MaterialTapTargetSize? materialTapTargetSize,
- bool? enableFeedback,
- double? extendedIconLabelSpacing,
- EdgeInsetsGeometry? extendedPadding,
- TextStyle? extendedTextStyle,
Returns a copy of this FloaticaActionButton with the option to modify any of the properties.
If any parameter is not specified, the current value from the original object is retained.
Implementation
FloaticaActionButton copyWith({
Widget? icon,
VoidCallback? onTap,
double? size,
Color? backgroundColor,
Color? foregroundColor,
Object? heroTag,
String? tooltip,
Color? focusColor,
Color? hoverColor,
Color? splashColor,
MouseCursor? mouseCursor,
bool? mini,
ShapeBorder? shape,
Clip? clipBehavior,
bool? isExtended,
FocusNode? focusNode,
bool? autofocus,
MaterialTapTargetSize? materialTapTargetSize,
bool? enableFeedback,
double? extendedIconLabelSpacing,
EdgeInsetsGeometry? extendedPadding,
TextStyle? extendedTextStyle,
}) {
return FloaticaActionButton(
icon: icon ?? this.icon,
onTap: onTap ?? this.onTap,
size: size ?? this.size,
backgroundColor: backgroundColor ?? this.backgroundColor,
foregroundColor: foregroundColor ?? this.foregroundColor,
heroTag: heroTag ?? this.heroTag,
tooltip: tooltip ?? this.tooltip,
focusColor: focusColor ?? this.focusColor,
hoverColor: hoverColor ?? this.hoverColor,
splashColor: splashColor ?? this.splashColor,
mouseCursor: mouseCursor ?? this.mouseCursor,
mini: mini ?? this.mini,
shape: shape ?? this.shape,
clipBehavior: clipBehavior ?? this.clipBehavior,
isExtended: isExtended ?? this.isExtended,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
materialTapTargetSize:
materialTapTargetSize ?? this.materialTapTargetSize,
enableFeedback: enableFeedback ?? this.enableFeedback,
extendedIconLabelSpacing:
extendedIconLabelSpacing ?? this.extendedIconLabelSpacing,
extendedPadding: extendedPadding ?? this.extendedPadding,
extendedTextStyle: extendedTextStyle ?? this.extendedTextStyle,
);
}