copyWith method
CountryPickerThemeData
copyWith({
- Color? backgroundColor,
- Color? headerColor,
- Color? textColor,
- Color? accentColor,
- Color? searchFieldColor,
- Color? searchFieldBorderColor,
- Color? cursorColor,
- Color? hintTextColor,
- Color? hoverColor,
- double? borderRadius,
- TextStyle? textStyle,
- double? itemHeight,
- EdgeInsets? itemPadding,
- double? flagSize,
Implementation
CountryPickerThemeData copyWith({
Color? backgroundColor,
Color? headerColor,
Color? textColor,
Color? accentColor,
Color? searchFieldColor,
Color? searchFieldBorderColor,
Color? cursorColor,
Color? hintTextColor,
Color? hoverColor,
double? borderRadius,
TextStyle? textStyle,
double? itemHeight,
EdgeInsets? itemPadding,
double? flagSize,
}) {
return CountryPickerThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
headerColor: headerColor ?? this.headerColor,
textColor: textColor ?? this.textColor,
accentColor: accentColor ?? this.accentColor,
searchFieldColor: searchFieldColor ?? this.searchFieldColor,
searchFieldBorderColor:
searchFieldBorderColor ?? this.searchFieldBorderColor,
cursorColor: cursorColor ?? this.cursorColor,
hintTextColor: hintTextColor ?? this.hintTextColor,
hoverColor: hoverColor ?? this.hoverColor,
borderRadius: borderRadius ?? this.borderRadius,
textStyle: textStyle ?? this.textStyle,
itemHeight: itemHeight ?? this.itemHeight,
itemPadding: itemPadding ?? this.itemPadding,
flagSize: flagSize ?? this.flagSize,
);
}