copyWith method
- @useResult
- FTextFieldStyle textFieldStyle()?,
- IconThemeData? iconStyle,
- FDividerStyle dividerStyle()?,
- IconThemeData? loadingIndicatorStyle,
Returns a copy of this FSelectSearchStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
textFieldStyle
The search field's style.
iconStyle
The search icon's style.
dividerStyle
The style of the divider between the search field and results.
loadingIndicatorStyle
The loading indicators style.
Implementation
@useResult
FSelectSearchStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle)? textFieldStyle,
IconThemeData? iconStyle,
FDividerStyle Function(FDividerStyle)? dividerStyle,
IconThemeData? loadingIndicatorStyle,
}) => FSelectSearchStyle(
textFieldStyle: textFieldStyle != null ? textFieldStyle(this.textFieldStyle) : this.textFieldStyle,
iconStyle: iconStyle ?? this.iconStyle,
dividerStyle: dividerStyle != null ? dividerStyle(this.dividerStyle) : this.dividerStyle,
loadingIndicatorStyle: loadingIndicatorStyle ?? this.loadingIndicatorStyle,
);