PhoneNumberTools class

Constructors

PhoneNumberTools()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allSupportedRegions({String? locale}) Future<List<RegionInfo>>
Returns a List of RegionInfo of all supported regions. Optionally pass the locale identifier for translating the names.
carrierRegionCode() Future<String>
Return the region code for the device's phone number.
format(String phoneNumberString, String regionCode) Future<String>
Format phoneNumberString or regionCode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String phoneNumberString, {String? regionCode}) Future<PhoneNumber>
Parse a phoneNumberString to PhoneNumber object
parseList(List<String> phoneNumberStrings, {String? regionCode}) Future<Map<String, PhoneNumber>>
Returns a Map with the keys set to each item in phoneNumberStrings and the value to the corresponding result of a parse operation for that item. See parse for details.
toString() String
A string representation of this object.
inherited
validate(String phoneNumberString, {String? regionCode}) Future<bool>
Validate phoneNumberString

Operators

operator ==(Object other) bool
The equality operator.
inherited