copyWith method
SmartAutoSuggestTheme
copyWith({
- Color? overlayColor,
- Color? overlayCardColor,
- List<
BoxShadow> ? overlayShadows, - BorderRadius? overlayBorderRadius,
- double? overlayMargin,
- BorderSide? listBorderSide,
- Color? tileColor,
- Color? selectedTileColor,
- Color? selectedTileTextColor,
- EdgeInsetsGeometry? tilePadding,
- TextStyle? tileSubtitleStyle,
- TextStyle? noResultsSubtitleStyle,
- TextStyle? loadingSubtitleStyle,
- TextStyle? errorSubtitleStyle,
- Color? errorIconColor,
- double? progressIndicatorHeight,
- Color? progressIndicatorColor,
- double? dividerIndent,
- Color? disabledItemColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
SmartAutoSuggestTheme copyWith({
Color? overlayColor,
Color? overlayCardColor,
List<BoxShadow>? overlayShadows,
BorderRadius? overlayBorderRadius,
double? overlayMargin,
BorderSide? listBorderSide,
Color? tileColor,
Color? selectedTileColor,
Color? selectedTileTextColor,
EdgeInsetsGeometry? tilePadding,
TextStyle? tileSubtitleStyle,
TextStyle? noResultsSubtitleStyle,
TextStyle? loadingSubtitleStyle,
TextStyle? errorSubtitleStyle,
Color? errorIconColor,
double? progressIndicatorHeight,
Color? progressIndicatorColor,
double? dividerIndent,
Color? disabledItemColor,
}) {
return SmartAutoSuggestTheme(
overlayColor: overlayColor ?? this.overlayColor,
overlayCardColor: overlayCardColor ?? this.overlayCardColor,
overlayShadows: overlayShadows ?? this.overlayShadows,
overlayBorderRadius: overlayBorderRadius ?? this.overlayBorderRadius,
overlayMargin: overlayMargin ?? this.overlayMargin,
listBorderSide: listBorderSide ?? this.listBorderSide,
tileColor: tileColor ?? this.tileColor,
selectedTileColor: selectedTileColor ?? this.selectedTileColor,
selectedTileTextColor:
selectedTileTextColor ?? this.selectedTileTextColor,
tilePadding: tilePadding ?? this.tilePadding,
tileSubtitleStyle: tileSubtitleStyle ?? this.tileSubtitleStyle,
noResultsSubtitleStyle:
noResultsSubtitleStyle ?? this.noResultsSubtitleStyle,
loadingSubtitleStyle: loadingSubtitleStyle ?? this.loadingSubtitleStyle,
errorSubtitleStyle: errorSubtitleStyle ?? this.errorSubtitleStyle,
errorIconColor: errorIconColor ?? this.errorIconColor,
progressIndicatorHeight:
progressIndicatorHeight ?? this.progressIndicatorHeight,
progressIndicatorColor:
progressIndicatorColor ?? this.progressIndicatorColor,
dividerIndent: dividerIndent ?? this.dividerIndent,
disabledItemColor: disabledItemColor ?? this.disabledItemColor,
);
}