rebuildWith method Null safety

PhoneNumber rebuildWith(
  1. {String? isoCode,
  2. String? nsn}
)

reparse phone number with new values

Implementation

PhoneNumber rebuildWith({String? isoCode, String? nsn}) =>
    PhoneParser.fromIsoCode(
      isoCode ?? this.isoCode,
      nsn ?? this.nsn,
    );