getRegionInfo static method

Future<RegionInfo> getRegionInfo(
  1. String phoneNumber,
  2. String isoCode
)

getRegionInfo about phone number Accepts phoneNumber and isoCode Returns Future<RegionInfo> of all information available about the phoneNumber

Implementation

static Future<RegionInfo> getRegionInfo(
    String phoneNumber, String isoCode) async {
  Map<String, dynamic>? response =
      await _platform.getRegionInfo(phoneNumber, isoCode);

  return RegionInfo.fromJson(response);
}