copyWith method
- @useResult
- FWidgetStateMap<
Decoration> ? decoration, - EdgeInsetsGeometry? contentPadding,
- double? spacing,
- double? runSpacing,
- FWidgetStateMap<
TextStyle> ? hintTextStyle, - EdgeInsetsGeometry? hintPadding,
- IconThemeData? iconStyle,
- FButtonStyle clearButtonStyle(
- FButtonStyle style
- EdgeInsetsGeometry? clearButtonPadding,
- FTappableStyle tappableStyle(
- FTappableStyle style
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FMultiSelectFieldStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FMultiSelectFieldStyle.decoration - The multi-select field's decoration.
- FMultiSelectFieldStyle.contentPadding - The multi-select field's padding.
- FMultiSelectFieldStyle.spacing - The spacing between tags.
- FMultiSelectFieldStyle.runSpacing - The spacing between the rows of tags.
- FMultiSelectFieldStyle.hintTextStyle - The multi-select field hint's text style.
- FMultiSelectFieldStyle.hintPadding - The multi-select field's hint padding.
- FMultiSelectFieldStyle.iconStyle - The multi-select field's icon style.
- FMultiSelectFieldStyle.clearButtonStyle - The clear button's style when [FMultiSelect.
- FMultiSelectFieldStyle.clearButtonPadding - The padding surrounding the clear button.
- FMultiSelectFieldStyle.tappableStyle - The multi-select field's tappable style.
- FMultiSelectFieldStyle.labelPadding - The label's padding.
- FMultiSelectFieldStyle.descriptionPadding - The description's padding.
- FMultiSelectFieldStyle.errorPadding - The error's padding.
- FMultiSelectFieldStyle.childPadding - The child's padding.
- FMultiSelectFieldStyle.labelTextStyle - The label's text style.
- FMultiSelectFieldStyle.descriptionTextStyle - The description's text style.
- FMultiSelectFieldStyle.errorTextStyle - The error's text style.
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,
);