copyWith method
LocationPickerTheme
copyWith({
- InputDecoration? inputDecoration,
- TextStyle? labelStyle,
- TextStyle? hintStyle,
- TextStyle? itemTextStyle,
- Color? dropdownBackgroundColor,
- Color? itemHighlightColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- BoxShadow? shadow,
- double? elevation,
- Color? iconColor,
- double? iconSize,
- double? maxHeight,
- bool? showSearchBox,
- InputDecoration? searchBoxDecoration,
- String? searchHint,
- Duration? animationDuration,
- bool? showFlags,
- bool? showPhoneCodes,
Implementation
LocationPickerTheme copyWith({
InputDecoration? inputDecoration,
TextStyle? labelStyle,
TextStyle? hintStyle,
TextStyle? itemTextStyle,
Color? dropdownBackgroundColor,
Color? itemHighlightColor,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
BorderRadius? borderRadius,
BoxShadow? shadow,
double? elevation,
Color? iconColor,
double? iconSize,
double? maxHeight,
bool? showSearchBox,
InputDecoration? searchBoxDecoration,
String? searchHint,
Duration? animationDuration,
bool? showFlags,
bool? showPhoneCodes,
}) {
return LocationPickerTheme(
inputDecoration: inputDecoration ?? this.inputDecoration,
labelStyle: labelStyle ?? this.labelStyle,
hintStyle: hintStyle ?? this.hintStyle,
itemTextStyle: itemTextStyle ?? this.itemTextStyle,
dropdownBackgroundColor: dropdownBackgroundColor ?? this.dropdownBackgroundColor,
itemHighlightColor: itemHighlightColor ?? this.itemHighlightColor,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
borderRadius: borderRadius ?? this.borderRadius,
shadow: shadow ?? this.shadow,
elevation: elevation ?? this.elevation,
iconColor: iconColor ?? this.iconColor,
iconSize: iconSize ?? this.iconSize,
maxHeight: maxHeight ?? this.maxHeight,
showSearchBox: showSearchBox ?? this.showSearchBox,
searchBoxDecoration: searchBoxDecoration ?? this.searchBoxDecoration,
searchHint: searchHint ?? this.searchHint,
animationDuration: animationDuration ?? this.animationDuration,
showFlags: showFlags ?? this.showFlags,
showPhoneCodes: showPhoneCodes ?? this.showPhoneCodes,
);
}