copyWith method

AppBarActionButtonThemeData copyWith({
  1. double? iconSize,
  2. VisualDensity? visualDensity,
  3. EdgeInsetsGeometry? padding,
  4. AlignmentGeometry? alignment,
  5. double? splashRadius,
  6. Color? focusColor,
  7. Color? hoverColor,
  8. Color? color,
  9. Color? splashColor,
  10. Color? highlightColor,
  11. Color? disabledColor,
  12. MouseCursor? mouseCursor,
  13. bool? autofocus,
  14. bool? enableFeedback,
  15. BoxConstraints? constraints,
})

Creates a copy of this value but with given fields replaced with the new values.

Implementation

AppBarActionButtonThemeData copyWith({
  double? iconSize,
  VisualDensity? visualDensity,
  EdgeInsetsGeometry? padding,
  AlignmentGeometry? alignment,
  double? splashRadius,
  Color? focusColor,
  Color? hoverColor,
  Color? color,
  Color? splashColor,
  Color? highlightColor,
  Color? disabledColor,
  MouseCursor? mouseCursor,
  bool? autofocus,
  bool? enableFeedback,
  BoxConstraints? constraints,
}) {
  return AppBarActionButtonThemeData(
    iconSize: iconSize ?? this.iconSize,
    visualDensity: visualDensity ?? this.visualDensity,
    padding: padding ?? this.padding,
    alignment: alignment ?? this.alignment,
    splashRadius: splashRadius ?? this.splashRadius,
    focusColor: focusColor ?? this.focusColor,
    hoverColor: hoverColor ?? this.hoverColor,
    color: color ?? this.color,
    splashColor: splashColor ?? this.splashColor,
    highlightColor: highlightColor ?? this.highlightColor,
    disabledColor: disabledColor ?? this.disabledColor,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    autofocus: autofocus ?? this.autofocus,
    enableFeedback: enableFeedback ?? this.enableFeedback,
    constraints: constraints ?? this.constraints,
  );
}