copyWith method

GrxPhoneNumber copyWith({
  1. String? phone,
  2. String? countryCode,
})

Creates a copy of this GrxPhoneNumber with the given fields replaced.

If a field is not provided, it will use the current value.

Implementation

GrxPhoneNumber copyWith({String? phone, String? countryCode}) {
  return GrxPhoneNumber(
    phone: phone ?? this.phone,
    countryCode: countryCode ?? this.countryCode,
  );
}