copyWith method

ZeroRadioStyle copyWith({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. 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 ZeroRadioStyle with the same properties as the original instance, except for the properties that are explicitly overridden.

Implementation

ZeroRadioStyle copyWith({
  Color? activeColor,
  Color? inactiveColor,
  Color? disabledColor,
}) {
  return ZeroRadioStyle(
    activeColor: activeColor ?? this.activeColor,
    inactiveColor: inactiveColor ?? this.inactiveColor,
    disabledColor: disabledColor ?? this.disabledColor,
  );
}