copyWith method
- @useResult
- FTextFieldStyleDelta? fieldStyle,
- FSelectSearchStyleDelta? searchStyle,
- FSelectContentStyleDelta? contentStyle,
- TextStyleDelta? emptyTextStyle,
Returns a copy of this FSelectStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectStyle.fieldStyle - The select field's style.
- FSelectStyle.searchStyle - The search's style.
- FSelectStyle.contentStyle - The content's style.
- FSelectStyle.emptyTextStyle - The default text style when there are no results.
Implementation
@useResult
FSelectStyle copyWith({
FTextFieldStyleDelta? fieldStyle,
FSelectSearchStyleDelta? searchStyle,
FSelectContentStyleDelta? contentStyle,
TextStyleDelta? emptyTextStyle,
}) => .new(
fieldStyle: fieldStyle?.call(this.fieldStyle) ?? this.fieldStyle,
searchStyle: searchStyle?.call(this.searchStyle) ?? this.searchStyle,
contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
emptyTextStyle: emptyTextStyle?.call(this.emptyTextStyle) ?? this.emptyTextStyle,
);