formatPhoneNumber function

Future<String> formatPhoneNumber(
  1. String phoneNumber, {
  2. String isoCode = '',
})

Implementation

Future<String> formatPhoneNumber(String phoneNumber,
    {String isoCode = ''}) async {
  return (await PhoneNumberUtil.formatAsYouType(
      phoneNumber: phoneNumber, isoCode: ''));
}