copyWith method

  1. @useResult
FAutocompleteContentStyle copyWith({
  1. IconThemeData? loadingIndicatorStyle,
  2. TextStyle? emptyTextStyle,
  3. EdgeInsetsGeometry? padding,
  4. FAutocompleteSectionStyle sectionStyle(
    1. FAutocompleteSectionStyle
    )?,
})

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

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

loadingIndicatorStyle

The loading indicators style.

emptyTextStyle

The default text style when there are no results.

padding

The padding surrounding the content. Defaults to const EdgeInsets.symmetric(vertical: 5).

sectionStyle

The section's style.

Implementation

@useResult
FAutocompleteContentStyle copyWith({
  IconThemeData? loadingIndicatorStyle,
  TextStyle? emptyTextStyle,
  EdgeInsetsGeometry? padding,
  FAutocompleteSectionStyle Function(FAutocompleteSectionStyle)? sectionStyle,
}) => FAutocompleteContentStyle(
  loadingIndicatorStyle: loadingIndicatorStyle ?? this.loadingIndicatorStyle,
  emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
  padding: padding ?? this.padding,
  sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
);