copyWith method

PhoneInputTheme copyWith({
  1. ValueGetter<EdgeInsetsGeometry?>? padding,
  2. ValueGetter<BorderRadiusGeometry?>? borderRadius,
  3. ValueGetter<BoxConstraints?>? popupConstraints,
  4. ValueGetter<double?>? maxWidth,
  5. ValueGetter<double?>? flagHeight,
  6. ValueGetter<double?>? flagWidth,
  7. ValueGetter<double?>? flagGap,
  8. ValueGetter<double?>? countryGap,
  9. ValueGetter<Shape?>? flagShape,
})

Creates a copy of this PhoneInputTheme with the given values overridden.

Implementation

PhoneInputTheme copyWith({
  ValueGetter<EdgeInsetsGeometry?>? padding,
  ValueGetter<BorderRadiusGeometry?>? borderRadius,
  ValueGetter<BoxConstraints?>? popupConstraints,
  ValueGetter<double?>? maxWidth,
  ValueGetter<double?>? flagHeight,
  ValueGetter<double?>? flagWidth,
  ValueGetter<double?>? flagGap,
  ValueGetter<double?>? countryGap,
  ValueGetter<Shape?>? flagShape,
}) {
  return PhoneInputTheme(
    padding: padding != null ? padding() : this.padding,
    borderRadius: borderRadius != null ? borderRadius() : this.borderRadius,
    popupConstraints:
        popupConstraints != null ? popupConstraints() : this.popupConstraints,
    maxWidth: maxWidth != null ? maxWidth() : this.maxWidth,
    flagHeight: flagHeight != null ? flagHeight() : this.flagHeight,
    flagWidth: flagWidth != null ? flagWidth() : this.flagWidth,
    flagGap: flagGap != null ? flagGap() : this.flagGap,
    countryGap: countryGap != null ? countryGap() : this.countryGap,
    flagShape: flagShape != null ? flagShape() : this.flagShape,
  );
}