copyWith method

  1. @override
HMAutocompleteTheme copyWith({
  1. HMAutocompleteSize? size,
  2. BoxDecoration? selectPanelDecoration,
  3. TextStyle? selectedValueTextStyle,
  4. Color? fillColor,
  5. Color? selectedBgColor,
  6. Color? overlayColor,
  7. HMRadius? radius,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
HMAutocompleteTheme copyWith({
  HMAutocompleteSize? size,
  BoxDecoration? selectPanelDecoration,
  TextStyle? selectedValueTextStyle,
  Color? fillColor,
  Color? selectedBgColor,
  Color? overlayColor,
  HMRadius? radius,
}) {
  return HMAutocompleteTheme(
    radius: radius ?? this.radius,
    selectedBgColor: selectedBgColor ?? this.selectedBgColor,
    overlayColor: overlayColor ?? this.overlayColor,
    selectPanelDecoration:
        selectPanelDecoration ?? this.selectPanelDecoration,
    selectedValueTextStyle:
        selectedValueTextStyle ?? this.selectedValueTextStyle,
    size: size ?? this.size,
  );
}