PhoneNumberTools class
Constructors
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
ofRegionInfo
of all supported regions. Optionally pass thelocale
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
orregionCode
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String phoneNumberString, {String? regionCode}) → Future< PhoneNumber> -
Parse a
phoneNumberString
toPhoneNumber
object -
parseList(
List< String> phoneNumberStrings, {String? regionCode}) → Future<Map< String, PhoneNumber> > -
Returns a
Map
with the keys set to each item inphoneNumberStrings
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