copyWith method

  1. @useResult
FAutocompleteStyle copyWith({
  1. FTextFieldStyle fieldStyle(
    1. FTextFieldStyle
    )?,
  2. FWidgetStateMap<TextStyle>? composingTextStyle,
  3. FWidgetStateMap<TextStyle>? typeaheadTextStyle,
  4. FPopoverStyle popoverStyle(
    1. FPopoverStyle
    )?,
  5. FAutocompleteContentStyle contentStyle(
    1. FAutocompleteContentStyle
    )?,
})

Returns a copy of this FAutocompleteStyle with the given properties replaced.

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

fieldStyle

The select field's style.

composingTextStyle

The composing text's TextStyle.

It is strongly recommended that FTextFieldStyle.contentTextStyle], composingTextStyle and typeaheadTextStyle are the same size to prevent visual discrepancies between the actual and typeahead text.

The supported states are:

typeaheadTextStyle

The typeahead's TextStyle.

It is strongly recommended that FTextFieldStyle.contentTextStyle], composingTextStyle and typeaheadTextStyle are the same size to prevent visual discrepancies between the actual and typeahead text.

The supported states are:

popoverStyle

The popover's style.

contentStyle

The content's style.

Implementation

@useResult
FAutocompleteStyle copyWith({
  FTextFieldStyle Function(FTextFieldStyle)? fieldStyle,
  FWidgetStateMap<TextStyle>? composingTextStyle,
  FWidgetStateMap<TextStyle>? typeaheadTextStyle,
  FPopoverStyle Function(FPopoverStyle)? popoverStyle,
  FAutocompleteContentStyle Function(FAutocompleteContentStyle)? contentStyle,
}) => FAutocompleteStyle(
  fieldStyle: fieldStyle != null ? fieldStyle(this.fieldStyle) : this.fieldStyle,
  composingTextStyle: composingTextStyle ?? this.composingTextStyle,
  typeaheadTextStyle: typeaheadTextStyle ?? this.typeaheadTextStyle,
  popoverStyle: popoverStyle != null ? popoverStyle(this.popoverStyle) : this.popoverStyle,
  contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);