copyWith method

Phone copyWith({
  1. int? countryCode,
  2. String? number,
})

Implementation

Phone copyWith({int? countryCode, String? number}) {
  return Phone(
    countryCode ?? this.countryCode,
    number ?? this.number,
  );
}