copyWith method
- @useResult
- FWidgetStateMap<
Decoration> ? decoration, - EdgeInsetsGeometry? contentPadding,
- double? spacing,
- double? runSpacing,
- FWidgetStateMap<
TextStyle> ? hintTextStyle, - EdgeInsetsGeometry? hintPadding,
- IconThemeData? iconStyle,
- FButtonStyle clearButtonStyle()?,
- EdgeInsetsGeometry? clearButtonPadding,
- FTappableStyle tappableStyle()?,
- 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.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
decoration
The multi-select field's decoration.
The supported states are:
contentPadding
The multi-select field's padding. Defaults to EdgeInsets.only(start: 10, top: 6, bottom: 6, end: 8)
.
spacing
The spacing between tags. Defaults to 4.
runSpacing
The spacing between the rows of tags. Defaults to 4.
hintTextStyle
The multi-select field hint's text style.
The supported states are:
hintPadding
The multi-select field's hint padding. Defaults to EdgeInsetsDirectional.only(start: 4, top: 4, bottom: 4)
.
The vertical padding should typically be the same as the FMultiSelectTagStyle.padding.
iconStyle
The multi-select field's icon style.
clearButtonStyle
The clear button's style when FMultiSelect.clearable is true.
clearButtonPadding
The padding surrounding the clear button. Defaults to EdgeInsets.zero.
tappableStyle
The multi-select field's tappable style.
labelPadding
The label's padding.
descriptionPadding
The description's padding.
errorPadding
The error's padding.
childPadding
The child's padding.
labelTextStyle
The label's text style.
Supported states:
descriptionTextStyle
The description's text style.
Supported states:
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)? clearButtonStyle,
EdgeInsetsGeometry? clearButtonPadding,
FTappableStyle Function(FTappableStyle)? 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,
);