copyWith method

MacosIconButtonThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? disabledColor,
  3. Color? hoverColor,
  4. BoxShape? shape,
  5. BorderRadius? borderRadius,
  6. BoxConstraints? boxConstraints,
  7. EdgeInsetsGeometry? padding,
})

Copies this MacosIconButtonThemeData into another.

Implementation

MacosIconButtonThemeData copyWith({
  Color? backgroundColor,
  Color? disabledColor,
  Color? hoverColor,
  BoxShape? shape,
  BorderRadius? borderRadius,
  BoxConstraints? boxConstraints,
  EdgeInsetsGeometry? padding,
}) {
  return MacosIconButtonThemeData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    disabledColor: disabledColor ?? this.disabledColor,
    hoverColor: hoverColor ?? this.hoverColor,
    shape: shape ?? this.shape,
    borderRadius: borderRadius ?? this.borderRadius,
    boxConstraints: boxConstraints ?? this.boxConstraints,
    padding: padding ?? this.padding,
  );
}