copyWith method
- @useResult
- FMultiSelectFieldStyleDelta? fieldStyle,
- FMultiSelectTagStyleDelta? tagStyle,
- FSelectSearchStyleDelta? searchStyle,
- FSelectContentStyleDelta? contentStyle,
- TextStyleDelta? emptyTextStyle,
Returns a copy of this FMultiSelectStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FMultiSelectStyle.fieldStyle - The field's style.
- FMultiSelectStyle.tagStyle - The tag'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({
FMultiSelectFieldStyleDelta? fieldStyle,
FMultiSelectTagStyleDelta? tagStyle,
FSelectSearchStyleDelta? searchStyle,
FSelectContentStyleDelta? contentStyle,
TextStyleDelta? emptyTextStyle,
}) => .new(
fieldStyle: fieldStyle?.call(this.fieldStyle) ?? this.fieldStyle,
tagStyle: tagStyle?.call(this.tagStyle) ?? this.tagStyle,
searchStyle: searchStyle?.call(this.searchStyle) ?? this.searchStyle,
contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
emptyTextStyle: emptyTextStyle?.call(this.emptyTextStyle) ?? this.emptyTextStyle,
);