copyWith method

ZeroSwitchStyleSet copyWith({
  1. ZeroSwitchStyle? basic,
  2. ZeroSwitchStyle? android,
  3. ZeroSwitchStyle? iOS,
  4. Color? disabledColor,
})

Implementation

ZeroSwitchStyleSet copyWith({
  ZeroSwitchStyle? basic,
  ZeroSwitchStyle? android,
  ZeroSwitchStyle? iOS,
  Color? disabledColor,
}) {
  return ZeroSwitchStyleSet(
    basic: basic ?? this.basic,
    android: android ?? this.android,
    iOS: iOS ?? this.iOS,
    disabledColor: disabledColor ?? this.disabledColor,
  );
}