parsePhoneNumber static method

Future<bool> parsePhoneNumber(
  1. String number,
  2. String iso
)

Implementation

static Future<bool> parsePhoneNumber(String number, String iso) async {
  try {
    bool? isValid = await PhoneNumberUtil.isValidPhoneNumber(
        phoneNumber: number,
        isoCode: iso);
    return isValid!;
  } on PlatformException {
    return false;
  }
}