copyWith method
- @useResult
- FTextFieldStyle selectFieldStyle(
- FTextFieldStyle style
- IconThemeData? iconStyle,
- FSelectSearchStyle searchStyle(
- FSelectSearchStyle style
- FSelectContentStyle contentStyle(
- FSelectContentStyle style
- TextStyle? emptyTextStyle,
Returns a copy of this FSelectStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectStyle.selectFieldStyle - The select field's style.
- FSelectStyle.iconStyle - The select field's icon 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({
FTextFieldStyle Function(FTextFieldStyle style)? selectFieldStyle,
IconThemeData? iconStyle,
FSelectSearchStyle Function(FSelectSearchStyle style)? searchStyle,
FSelectContentStyle Function(FSelectContentStyle style)? contentStyle,
TextStyle? emptyTextStyle,
}) => .new(
selectFieldStyle: selectFieldStyle != null ? selectFieldStyle(this.selectFieldStyle) : this.selectFieldStyle,
iconStyle: iconStyle ?? this.iconStyle,
searchStyle: searchStyle != null ? searchStyle(this.searchStyle) : this.searchStyle,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
);