copyWith method
HMAutocompleteTheme
copyWith({
- HMAutocompleteSize? size,
- BoxDecoration? selectPanelDecoration,
- TextStyle? selectedValueTextStyle,
- Color? fillColor,
- Color? selectedBgColor,
- Color? overlayColor,
- 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,
);
}