copyWith method

  1. @useResult
FMultiSelectFieldStyle copyWith({
  1. FWidgetStateMap<Decoration>? decoration,
  2. EdgeInsetsGeometry? contentPadding,
  3. double? spacing,
  4. double? runSpacing,
  5. FWidgetStateMap<TextStyle>? hintTextStyle,
  6. EdgeInsetsGeometry? hintPadding,
  7. IconThemeData? iconStyle,
  8. FButtonStyle clearButtonStyle(
    1. FButtonStyle style
    )?,
  9. EdgeInsetsGeometry? clearButtonPadding,
  10. FTappableStyle tappableStyle(
    1. FTappableStyle style
    )?,
  11. EdgeInsetsGeometry? labelPadding,
  12. EdgeInsetsGeometry? descriptionPadding,
  13. EdgeInsetsGeometry? errorPadding,
  14. EdgeInsetsGeometry? childPadding,
  15. FWidgetStateMap<TextStyle>? labelTextStyle,
  16. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  17. TextStyle? errorTextStyle,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FMultiSelectFieldStyle copyWith({
  FWidgetStateMap<Decoration>? decoration,
  EdgeInsetsGeometry? contentPadding,
  double? spacing,
  double? runSpacing,
  FWidgetStateMap<TextStyle>? hintTextStyle,
  EdgeInsetsGeometry? hintPadding,
  IconThemeData? iconStyle,
  FButtonStyle Function(FButtonStyle style)? clearButtonStyle,
  EdgeInsetsGeometry? clearButtonPadding,
  FTappableStyle Function(FTappableStyle style)? tappableStyle,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FMultiSelectFieldStyle(
  decoration: decoration ?? this.decoration,
  contentPadding: contentPadding ?? this.contentPadding,
  spacing: spacing ?? this.spacing,
  runSpacing: runSpacing ?? this.runSpacing,
  hintTextStyle: hintTextStyle ?? this.hintTextStyle,
  hintPadding: hintPadding ?? this.hintPadding,
  iconStyle: iconStyle ?? this.iconStyle,
  clearButtonStyle: clearButtonStyle != null ? clearButtonStyle(this.clearButtonStyle) : this.clearButtonStyle,
  clearButtonPadding: clearButtonPadding ?? this.clearButtonPadding,
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
  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,
);