copyWith method

  1. @useResult
FSwitchStyle copyWith({
  1. Color? focusColor,
  2. FWidgetStateMap<Color>? trackColor,
  3. FWidgetStateMap<Color>? thumbColor,
  4. EdgeInsetsGeometry? labelPadding,
  5. EdgeInsetsGeometry? descriptionPadding,
  6. EdgeInsetsGeometry? errorPadding,
  7. EdgeInsetsGeometry? childPadding,
  8. FWidgetStateMap<TextStyle>? labelTextStyle,
  9. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  10. TextStyle? errorTextStyle,
})

Returns a copy of this FSwitchStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FSwitchStyle copyWith({
  Color? focusColor,
  FWidgetStateMap<Color>? trackColor,
  FWidgetStateMap<Color>? thumbColor,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FSwitchStyle(
  focusColor: focusColor ?? this.focusColor,
  trackColor: trackColor ?? this.trackColor,
  thumbColor: thumbColor ?? this.thumbColor,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);