getPhoneNumberType method Null safety

Future<PhoneNumberType> getPhoneNumberType(
  1. String phoneNumber,
  2. String isoCode
)

Returns PhoneNumberType which is the type of phone number Accepts phoneNumber and isoCode and r

Implementation

static Future<PhoneNumberType> getPhoneNumberType(
    String phoneNumber, String isoCode) async {
  PhoneNumberType type = await PhoneNumberUtil.getNumberType(
      phoneNumber: phoneNumber, isoCode: isoCode);

  return type;
}