copyWith method

CountryButtonStyle copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsets? padding,
  3. double? flagSize,
  4. bool? showFlag,
  5. bool? showDialCode,
  6. bool? showIsoCode,
  7. bool? showDropdownIcon,
})

Implementation

CountryButtonStyle copyWith({
  TextStyle? textStyle,
  EdgeInsets? padding,
  double? flagSize,
  bool? showFlag,
  bool? showDialCode,
  bool? showIsoCode,
  bool? showDropdownIcon,
}) {
  return CountryButtonStyle(
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
    flagSize: flagSize ?? this.flagSize,
    showFlag: showFlag ?? this.showFlag,
    showDialCode: showDialCode ?? this.showDialCode,
    showIsoCode: showIsoCode ?? this.showIsoCode,
    showDropdownIcon: showDropdownIcon ?? this.showDropdownIcon,
  );
}