copyWith method
- @useResult
- FMultiSelectFieldStyle fieldStyle()?,
- FMultiSelectTagStyle tagStyle()?,
- FPopoverStyle popoverStyle()?,
- FSelectSearchStyle searchStyle()?,
- FSelectContentStyle contentStyle()?,
- TextStyle? emptyTextStyle,
Returns a copy of this FMultiSelectStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
fieldStyle
The field's style.
tagStyle
The tag's style.
popoverStyle
The popover's style.
searchStyle
The search's style.
contentStyle
The content's style.
emptyTextStyle
The default text style when there are no results.
Implementation
@useResult
FMultiSelectStyle copyWith({
FMultiSelectFieldStyle Function(FMultiSelectFieldStyle)? fieldStyle,
FMultiSelectTagStyle Function(FMultiSelectTagStyle)? tagStyle,
FPopoverStyle Function(FPopoverStyle)? popoverStyle,
FSelectSearchStyle Function(FSelectSearchStyle)? searchStyle,
FSelectContentStyle Function(FSelectContentStyle)? contentStyle,
TextStyle? emptyTextStyle,
}) => FMultiSelectStyle(
fieldStyle: fieldStyle != null ? fieldStyle(this.fieldStyle) : this.fieldStyle,
tagStyle: tagStyle != null ? tagStyle(this.tagStyle) : this.tagStyle,
popoverStyle: popoverStyle != null ? popoverStyle(this.popoverStyle) : this.popoverStyle,
searchStyle: searchStyle != null ? searchStyle(this.searchStyle) : this.searchStyle,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
);