copyWith method
- @useResult
- Color? focusColor,
- FLabelLayoutStyle? labelLayoutStyle,
- FSwitchStateStyle? enabledStyle,
- FSwitchStateStyle? disabledStyle,
- FSwitchErrorStyle? errorStyle,
Returns a copy of this FSwitchStyle with the given properties replaced.
Implementation
@useResult
FSwitchStyle copyWith({
Color? focusColor,
FLabelLayoutStyle? labelLayoutStyle,
FSwitchStateStyle? enabledStyle,
FSwitchStateStyle? disabledStyle,
FSwitchErrorStyle? errorStyle,
}) =>
FSwitchStyle(
focusColor: focusColor ?? this.focusColor,
labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
enabledStyle: enabledStyle ?? this.enabledStyle,
disabledStyle: disabledStyle ?? this.disabledStyle,
errorStyle: errorStyle ?? this.errorStyle,
);