copyWith method

  1. @override
SmartAutoSuggestTheme copyWith({
  1. Color? overlayColor,
  2. Color? overlayCardColor,
  3. List<BoxShadow>? overlayShadows,
  4. BorderRadius? overlayBorderRadius,
  5. double? overlayMargin,
  6. BorderSide? listBorderSide,
  7. Color? tileColor,
  8. Color? selectedTileColor,
  9. Color? selectedTileTextColor,
  10. EdgeInsetsGeometry? tilePadding,
  11. TextStyle? tileSubtitleStyle,
  12. TextStyle? noResultsSubtitleStyle,
  13. TextStyle? loadingSubtitleStyle,
  14. TextStyle? errorSubtitleStyle,
  15. Color? errorIconColor,
  16. double? progressIndicatorHeight,
  17. Color? progressIndicatorColor,
  18. double? dividerIndent,
  19. 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,
  );
}