copyWith method

CountryPickerThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? headerColor,
  3. Color? textColor,
  4. Color? accentColor,
  5. Color? searchFieldColor,
  6. Color? searchFieldBorderColor,
  7. Color? cursorColor,
  8. Color? hintTextColor,
  9. Color? hoverColor,
  10. double? borderRadius,
  11. TextStyle? textStyle,
  12. double? itemHeight,
  13. EdgeInsets? itemPadding,
  14. 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,
  );
}