Location class abstract

Class is used for storing location parameters: identifier, version, name, a list of sublocations, etc. Location instance can be obtained from LocationManager using LocationListener callback, when the location is loaded. Referenced from LocationManager LocationListener.

Implemented types
Implementers

Constructors

Location()

Properties

categories List<Category>
List of venue categories defined for the location Category.
no setter
descript String
location's description.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
location's identifier.
no setter
modified bool
Flag indicates if location has been modified by user or not
no setter
name String
location name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sublocations List<Sublocation>
List of sublocations Sublocation
no setter
version int
location's version.
no setter

Methods

getCategoryById(int id) Category?
Method is used for obtaining a category with the specified identifier from the current location. id category identifier. Returns Category of the current location with the specified identifier, if it exists. If category with the specified identifier doesn't exist, function returns null.
getElevationGraph(String tag) ElevationGraph
Method returns location elevation graph ElevationGraph for specified tag tag Graph tag in CMS Returns Elevation graph instance or null. Returns ElevationGraph of the current location with the specified tag, if it exists. If elevation graph with the specified tag doesn't exist, function returns null.
getGraphTags() List<String>
Method returns list of available graph tags. Returns Array of existing tags
getSublocationById(int id) Sublocation
Method is used for obtaining a sublocation with the specified identifier from the current location. id sublocation identifier. Returns The Sublocation of the current location with the specified identifier, if it exists. If sublocation with the specified identifier doesn't exist, function returns null.
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