copyWith method
- @useResult
- FTextFieldStyle textFieldStyle(
- FTextFieldStyle style
- IconThemeData? iconStyle,
- FDividerStyle dividerStyle(
- FDividerStyle style
- FCircularProgressStyle progressStyle(
- FCircularProgressStyle style
Returns a copy of this FSelectSearchStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectSearchStyle.textFieldStyle - The search field's style.
- FSelectSearchStyle.iconStyle - The search icon's style.
- FSelectSearchStyle.dividerStyle - The style of the divider between the search field and results.
- FSelectSearchStyle.progressStyle - The loading progress's style.
Implementation
@useResult
FSelectSearchStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle style)? textFieldStyle,
IconThemeData? iconStyle,
FDividerStyle Function(FDividerStyle style)? dividerStyle,
FCircularProgressStyle Function(FCircularProgressStyle style)? progressStyle,
}) => FSelectSearchStyle(
textFieldStyle: textFieldStyle != null ? textFieldStyle(this.textFieldStyle) : this.textFieldStyle,
iconStyle: iconStyle ?? this.iconStyle,
dividerStyle: dividerStyle != null ? dividerStyle(this.dividerStyle) : this.dividerStyle,
progressStyle: progressStyle != null ? progressStyle(this.progressStyle) : this.progressStyle,
);