copyWith method

LocationPickerTheme copyWith({
  1. InputDecoration? inputDecoration,
  2. TextStyle? labelStyle,
  3. TextStyle? hintStyle,
  4. TextStyle? itemTextStyle,
  5. Color? dropdownBackgroundColor,
  6. Color? itemHighlightColor,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? margin,
  9. BorderRadius? borderRadius,
  10. BoxShadow? shadow,
  11. double? elevation,
  12. Color? iconColor,
  13. double? iconSize,
  14. double? maxHeight,
  15. bool? showSearchBox,
  16. InputDecoration? searchBoxDecoration,
  17. String? searchHint,
  18. Duration? animationDuration,
  19. bool? showFlags,
  20. 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,
  );
}