copyWith method

GeoPickerTheme copyWith({
  1. Color? backgroundColor,
  2. Color? headerColor,
  3. TextStyle? headerTextStyle,
  4. Color? headerIconColor,
  5. Color? searchBarColor,
  6. TextStyle? searchTextStyle,
  7. TextStyle? searchHintStyle,
  8. Color? searchIconColor,
  9. Color? searchBarBorderColor,
  10. BorderRadius? searchBarBorderRadius,
  11. Color? searchCursorColor,
  12. Color? searchFocusedBorderColor,
  13. EdgeInsetsGeometry? searchContentPadding,
  14. InputDecoration? searchInputDecoration,
  15. Color? itemBackgroundColor,
  16. Color? itemSelectedColor,
  17. Color? itemSelectedBorderColor,
  18. Color? itemSelectedIconColor,
  19. BorderRadius? itemBorderRadius,
  20. EdgeInsetsGeometry? itemContentPadding,
  21. TextStyle? itemNameTextStyle,
  22. TextStyle? itemSelectedNameTextStyle,
  23. TextStyle? itemSubtitleTextStyle,
  24. TextStyle? dialogOptionTextStyle,
  25. Color? borderColor,
  26. BorderRadius? borderRadius,
  27. double? scrollbarThickness,
  28. Radius? scrollbarRadius,
  29. Color? shadowColor,
  30. double? elevation,
  31. IconData? closeIcon,
  32. IconData? searchIcon,
  33. IconData? clearIcon,
  34. IconData? selectedIcon,
  35. Widget? selectedIconWidget,
  36. double? selectedIconSize,
  37. IconData? emptyStateIcon,
  38. TextStyle? emptyStateTextStyle,
})

Returns a copy of this theme with the given fields replaced.

Implementation

GeoPickerTheme copyWith({
  Color? backgroundColor,
  Color? headerColor,
  TextStyle? headerTextStyle,
  Color? headerIconColor,
  Color? searchBarColor,
  TextStyle? searchTextStyle,
  TextStyle? searchHintStyle,
  Color? searchIconColor,
  Color? searchBarBorderColor,
  BorderRadius? searchBarBorderRadius,
  Color? searchCursorColor,
  Color? searchFocusedBorderColor,
  EdgeInsetsGeometry? searchContentPadding,
  InputDecoration? searchInputDecoration,
  Color? itemBackgroundColor,
  Color? itemSelectedColor,
  Color? itemSelectedBorderColor,
  Color? itemSelectedIconColor,
  BorderRadius? itemBorderRadius,
  EdgeInsetsGeometry? itemContentPadding,
  TextStyle? itemNameTextStyle,
  TextStyle? itemSelectedNameTextStyle,
  TextStyle? itemSubtitleTextStyle,
  TextStyle? dialogOptionTextStyle,
  Color? borderColor,
  BorderRadius? borderRadius,
  double? scrollbarThickness,
  Radius? scrollbarRadius,
  Color? shadowColor,
  double? elevation,
  IconData? closeIcon,
  IconData? searchIcon,
  IconData? clearIcon,
  IconData? selectedIcon,
  Widget? selectedIconWidget,
  double? selectedIconSize,
  IconData? emptyStateIcon,
  TextStyle? emptyStateTextStyle,
}) {
  return GeoPickerTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    headerColor: headerColor ?? this.headerColor,
    headerTextStyle: headerTextStyle ?? this.headerTextStyle,
    headerIconColor: headerIconColor ?? this.headerIconColor,
    searchBarColor: searchBarColor ?? this.searchBarColor,
    searchTextStyle: searchTextStyle ?? this.searchTextStyle,
    searchHintStyle: searchHintStyle ?? this.searchHintStyle,
    searchIconColor: searchIconColor ?? this.searchIconColor,
    searchBarBorderColor: searchBarBorderColor ?? this.searchBarBorderColor,
    searchBarBorderRadius: searchBarBorderRadius ?? this.searchBarBorderRadius,
    searchCursorColor: searchCursorColor ?? this.searchCursorColor,
    searchFocusedBorderColor: searchFocusedBorderColor ?? this.searchFocusedBorderColor,
    searchContentPadding: searchContentPadding ?? this.searchContentPadding,
    searchInputDecoration: searchInputDecoration ?? this.searchInputDecoration,
    itemBackgroundColor: itemBackgroundColor ?? this.itemBackgroundColor,
    itemSelectedColor: itemSelectedColor ?? this.itemSelectedColor,
    itemSelectedBorderColor: itemSelectedBorderColor ?? this.itemSelectedBorderColor,
    itemSelectedIconColor: itemSelectedIconColor ?? this.itemSelectedIconColor,
    itemBorderRadius: itemBorderRadius ?? this.itemBorderRadius,
    itemContentPadding: itemContentPadding ?? this.itemContentPadding,
    itemNameTextStyle: itemNameTextStyle ?? this.itemNameTextStyle,
    itemSelectedNameTextStyle: itemSelectedNameTextStyle ?? this.itemSelectedNameTextStyle,
    itemSubtitleTextStyle: itemSubtitleTextStyle ?? this.itemSubtitleTextStyle,
    dialogOptionTextStyle: dialogOptionTextStyle ?? this.dialogOptionTextStyle,
    borderColor: borderColor ?? this.borderColor,
    borderRadius: borderRadius ?? this.borderRadius,
    scrollbarThickness: scrollbarThickness ?? this.scrollbarThickness,
    scrollbarRadius: scrollbarRadius ?? this.scrollbarRadius,
    shadowColor: shadowColor ?? this.shadowColor,
    elevation: elevation ?? this.elevation,
    closeIcon: closeIcon ?? this.closeIcon,
    searchIcon: searchIcon ?? this.searchIcon,
    clearIcon: clearIcon ?? this.clearIcon,
    selectedIcon: selectedIcon ?? this.selectedIcon,
    selectedIconWidget: selectedIconWidget ?? this.selectedIconWidget,
    selectedIconSize: selectedIconSize ?? this.selectedIconSize,
    emptyStateIcon: emptyStateIcon ?? this.emptyStateIcon,
    emptyStateTextStyle: emptyStateTextStyle ?? this.emptyStateTextStyle,
  );
}