formatNsn method

String formatNsn({
  1. IsoCode? isoCode,
  2. NsnFormat format = NsnFormat.national,
})

formats the nsn, if no isoCode is provided the phone number region is used.

Implementation

String formatNsn({IsoCode? isoCode, NsnFormat format = NsnFormat.national}) =>
    PhoneNumberFormatter.formatNsn(nsn, isoCode ?? this.isoCode, format);