copyWith method

  1. @override
FluentAutoSuggestThemeData copyWith({
  1. AutoSuggestDesignSystem? designSystem,
  2. InputDecoration? textFieldDecoration,
  3. TextStyle? textFieldStyle,
  4. Color? textFieldCursorColor,
  5. double? textFieldCursorWidth,
  6. double? textFieldCursorHeight,
  7. Radius? textFieldCursorRadius,
  8. Color? textFieldFillColor,
  9. double? textFieldBorderRadius,
  10. Color? overlayBackgroundColor,
  11. Color? overlayCardColor,
  12. double? overlayBorderRadius,
  13. List<BoxShadow>? overlayShadows,
  14. double? overlayElevation,
  15. Color? itemBackgroundColor,
  16. Color? itemSelectedBackgroundColor,
  17. Color? itemHoverBackgroundColor,
  18. TextStyle? itemTextStyle,
  19. TextStyle? itemSelectedTextStyle,
  20. TextStyle? itemSubtitleTextStyle,
  21. EdgeInsetsGeometry? itemPadding,
  22. double? itemHeight,
  23. Color? loadingIndicatorColor,
  24. TextStyle? loadingTextStyle,
  25. TextStyle? noResultsTextStyle,
  26. TextStyle? noResultsSubtitleTextStyle,
  27. IconData? noResultsIcon,
  28. Color? noResultsIconColor,
  29. Color? iconColor,
  30. Color? clearButtonColor,
  31. Color? dropdownIconColor,
  32. TextDirection? textDirection,
  33. bool? rtlMirrorIcons,
  34. bool? rtlMirrorLayout,
})
override

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

Implementation

@override
FluentAutoSuggestThemeData copyWith({
  AutoSuggestDesignSystem? designSystem,
  InputDecoration? textFieldDecoration,
  TextStyle? textFieldStyle,
  Color? textFieldCursorColor,
  double? textFieldCursorWidth,
  double? textFieldCursorHeight,
  Radius? textFieldCursorRadius,
  Color? textFieldFillColor,
  double? textFieldBorderRadius,
  Color? overlayBackgroundColor,
  Color? overlayCardColor,
  double? overlayBorderRadius,
  List<BoxShadow>? overlayShadows,
  double? overlayElevation,
  Color? itemBackgroundColor,
  Color? itemSelectedBackgroundColor,
  Color? itemHoverBackgroundColor,
  TextStyle? itemTextStyle,
  TextStyle? itemSelectedTextStyle,
  TextStyle? itemSubtitleTextStyle,
  EdgeInsetsGeometry? itemPadding,
  double? itemHeight,
  Color? loadingIndicatorColor,
  TextStyle? loadingTextStyle,
  TextStyle? noResultsTextStyle,
  TextStyle? noResultsSubtitleTextStyle,
  IconData? noResultsIcon,
  Color? noResultsIconColor,
  Color? iconColor,
  Color? clearButtonColor,
  Color? dropdownIconColor,
  TextDirection? textDirection,
  bool? rtlMirrorIcons,
  bool? rtlMirrorLayout,
}) {
  return FluentAutoSuggestThemeData(
    designSystem: designSystem ?? this.designSystem,
    textFieldDecoration: textFieldDecoration ?? this.textFieldDecoration,
    textFieldStyle: textFieldStyle ?? this.textFieldStyle,
    textFieldCursorColor: textFieldCursorColor ?? this.textFieldCursorColor,
    textFieldCursorWidth: textFieldCursorWidth ?? this.textFieldCursorWidth,
    textFieldCursorHeight: textFieldCursorHeight ?? this.textFieldCursorHeight,
    textFieldCursorRadius: textFieldCursorRadius ?? this.textFieldCursorRadius,
    textFieldFillColor: textFieldFillColor ?? this.textFieldFillColor,
    textFieldBorderRadius: textFieldBorderRadius ?? this.textFieldBorderRadius,
    overlayBackgroundColor: overlayBackgroundColor ?? this.overlayBackgroundColor,
    overlayCardColor: overlayCardColor ?? this.overlayCardColor,
    overlayBorderRadius: overlayBorderRadius ?? this.overlayBorderRadius,
    overlayShadows: overlayShadows ?? this.overlayShadows,
    overlayElevation: overlayElevation ?? this.overlayElevation,
    itemBackgroundColor: itemBackgroundColor ?? this.itemBackgroundColor,
    itemSelectedBackgroundColor: itemSelectedBackgroundColor ?? this.itemSelectedBackgroundColor,
    itemHoverBackgroundColor: itemHoverBackgroundColor ?? this.itemHoverBackgroundColor,
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
    itemSelectedTextStyle: itemSelectedTextStyle ?? this.itemSelectedTextStyle,
    itemSubtitleTextStyle: itemSubtitleTextStyle ?? this.itemSubtitleTextStyle,
    itemPadding: itemPadding ?? this.itemPadding,
    itemHeight: itemHeight ?? this.itemHeight,
    loadingIndicatorColor: loadingIndicatorColor ?? this.loadingIndicatorColor,
    loadingTextStyle: loadingTextStyle ?? this.loadingTextStyle,
    noResultsTextStyle: noResultsTextStyle ?? this.noResultsTextStyle,
    noResultsSubtitleTextStyle: noResultsSubtitleTextStyle ?? this.noResultsSubtitleTextStyle,
    noResultsIcon: noResultsIcon ?? this.noResultsIcon,
    noResultsIconColor: noResultsIconColor ?? this.noResultsIconColor,
    iconColor: iconColor ?? this.iconColor,
    clearButtonColor: clearButtonColor ?? this.clearButtonColor,
    dropdownIconColor: dropdownIconColor ?? this.dropdownIconColor,
    textDirection: textDirection ?? this.textDirection,
    rtlMirrorIcons: rtlMirrorIcons ?? this.rtlMirrorIcons,
    rtlMirrorLayout: rtlMirrorLayout ?? this.rtlMirrorLayout,
  );
}