copyWith method
- @useResult
- FMultiSelectFieldStyle fieldStyle(
- FMultiSelectFieldStyle style
- FMultiSelectTagStyle tagStyle(
- FMultiSelectTagStyle style
- FPopoverStyle popoverStyle(
- FPopoverStyle style
- FSelectSearchStyle searchStyle(
- FSelectSearchStyle style
- FSelectContentStyle contentStyle(
- FSelectContentStyle style
- TextStyle? emptyTextStyle,
Returns a copy of this FMultiSelectStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FMultiSelectStyle.fieldStyle - The field's style.
- FMultiSelectStyle.tagStyle - The tag's style.
- FMultiSelectStyle.popoverStyle - The popover's style.
- FMultiSelectStyle.searchStyle - The search's style.
- FMultiSelectStyle.contentStyle - The content's style.
- FMultiSelectStyle.emptyTextStyle - The default text style when there are no results.
Implementation
@useResult
FMultiSelectStyle copyWith({
FMultiSelectFieldStyle Function(FMultiSelectFieldStyle style)? fieldStyle,
FMultiSelectTagStyle Function(FMultiSelectTagStyle style)? tagStyle,
FPopoverStyle Function(FPopoverStyle style)? popoverStyle,
FSelectSearchStyle Function(FSelectSearchStyle style)? searchStyle,
FSelectContentStyle Function(FSelectContentStyle style)? 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,
);