getExampleNumber method

PhoneNumber? getExampleNumber(
  1. String regionCode
)

Gets a valid number for the specified region.

regionCode the region for which an example number is needed. getExampleNumber returns a valid fixed-line number for the specified region. Returns null when the metadata does not contain such information, or the region 001 is passed in. For 001 (representing non- geographical numbers), call {@link #getExampleNumberForNonGeoEntity} instead.

Implementation

PhoneNumber? getExampleNumber(String regionCode) {
  return getExampleNumberForType(
    regionCode: regionCode,
    type: PhoneNumberType.fixedLine,
  );
}