copyWith method
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,
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,
);
}