PhoneNumberToTimeZonesMapper class
An offline mapper from phone numbers to time zones.
Constructors
-
PhoneNumberToTimeZonesMapper.new(Map<
int, String> timezones)
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
-
getTimeZonesForGeographicalNumber(
PhoneNumber number) → List< String> - Returns a list of time zones to which a phone number belongs.
-
getTimeZonesForNumber(
PhoneNumber number) → List< String> - As per getTimeZonesForGeographicalNumber(PhoneNumber) but explicitly checks the validity of the number passed in.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PhoneNumberToTimeZonesMapper
-
no setter
- unknownTimeZone → String
-
Returns a String with the ICU unknown time zone.
no setter
-
unknownTimeZoneList
→ List<
String> -
final