LocationDatabase class

LocationDatabase provides interface to find Locations by their name.

List<int> data = load(); // load database

LocationDatabase db = LocationDatabase.fromBytes(data);
Location loc = db.get('US/Eastern');

Constructors

LocationDatabase()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isEmpty bool
Returns whether the database is empty, or has Location entries.
read-only
isInitialized bool
Returns whether the database is empty, or has Location entries.
read-only
locations Map<String, Location>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

add(Location location) → void
Adds Location to the database.
clear() → void
Clears the database of all Location entries.
get(String name) Location
Finds Location by its name.
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