copyWith method

FloaticaActionButton copyWith({
  1. Widget? icon,
  2. VoidCallback? onTap,
  3. double? size,
  4. Color? backgroundColor,
  5. Color? foregroundColor,
  6. Object? heroTag,
  7. String? tooltip,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. Color? splashColor,
  11. MouseCursor? mouseCursor,
  12. bool? mini,
  13. ShapeBorder? shape,
  14. Clip? clipBehavior,
  15. bool? isExtended,
  16. FocusNode? focusNode,
  17. bool? autofocus,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. bool? enableFeedback,
  20. double? extendedIconLabelSpacing,
  21. EdgeInsetsGeometry? extendedPadding,
  22. 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,
  );
}