copyWith method

  1. @useResult
FSelectSearchStyle copyWith({
  1. FTextFieldStyle textFieldStyle(
    1. FTextFieldStyle
    )?,
  2. IconThemeData? iconStyle,
  3. FDividerStyle dividerStyle(
    1. FDividerStyle
    )?,
  4. 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,
);