copyWith method
- @useResult
- FTextFieldStyle fieldStyle(
- FTextFieldStyle style
- FWidgetStateMap<
TextStyle> ? composingTextStyle, - FWidgetStateMap<
TextStyle> ? typeaheadTextStyle, - FAutocompleteContentStyle contentStyle()?,
Returns a copy of this FAutocompleteStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FAutocompleteStyle.fieldStyle - The select field's style.
- FAutocompleteStyle.composingTextStyle - The composing text's TextStyle.
- FAutocompleteStyle.typeaheadTextStyle - The typeahead's TextStyle.
- FAutocompleteStyle.contentStyle - The content's style.
Implementation
@useResult
FAutocompleteStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle style)? fieldStyle,
FWidgetStateMap<TextStyle>? composingTextStyle,
FWidgetStateMap<TextStyle>? typeaheadTextStyle,
FAutocompleteContentStyle Function(FAutocompleteContentStyle style)? contentStyle,
}) => .new(
fieldStyle: fieldStyle != null ? fieldStyle(this.fieldStyle) : this.fieldStyle,
composingTextStyle: composingTextStyle ?? this.composingTextStyle,
typeaheadTextStyle: typeaheadTextStyle ?? this.typeaheadTextStyle,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
);