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
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns whether the database is empty, or has Location entries.
no setter
- isInitialized → bool
-
Returns whether the database is empty, or has Location entries.
no setter
-
locations
→ Map<
String, Location> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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