copyWith method
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,
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,
);
}