copyWith method

ZeroButtonIconStyleSet copyWith({
  1. ZeroButtonIconStyle? primaryStyle,
  2. ZeroButtonIconStyle? secondaryStyle,
  3. double? largeSize,
  4. double? mediumSize,
  5. double? smallSize,
  6. Color? disabledColor,
})

If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.

A new instance of ZeroButtonIconStyleSet with the same properties as the original instance, except for the properties that are explicitly overridden.

Implementation

ZeroButtonIconStyleSet copyWith({
  ZeroButtonIconStyle? primaryStyle,
  ZeroButtonIconStyle? secondaryStyle,
  double? largeSize,
  double? mediumSize,
  double? smallSize,
  Color? disabledColor,
}) {
  return ZeroButtonIconStyleSet(
    primaryStyle: primaryStyle ?? this.primaryStyle,
    secondaryStyle: secondaryStyle ?? this.secondaryStyle,
    largeSize: largeSize ?? this.largeSize,
    mediumSize: mediumSize ?? this.mediumSize,
    smallSize: smallSize ?? this.smallSize,
    disabledColor: disabledColor ?? this.disabledColor,
  );
}