LandmarkStore class Places
Landmark store class
This class should not be instantiated directly. Instead, use the related methods from LandmarkStoreService to obtain an instance.
Constructors
- LandmarkStore.init(int id, int mapId)
Properties
-
categories
→ List<
LandmarkCategory> -
Get the list of all categories.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Get the ID of the landmark store.
no setter
- mapId → int
-
no setter
- name → String
-
Get the landmark store name.
no setter
- pointerId → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → LandmarkStoreType
-
Get the type of the landmark store.
no setter
Methods
-
addCategory(
LandmarkCategory category) → void - Add a new category to the store.
-
addLandmark(
Landmark landmark, {int categoryId = LandmarkStore.uncategorizedLandmarkCategId}) → void - Add a landmark to the specified category in the landmark store.
-
containsLandmark(
int landmarkId) → bool - Checks if the landmark store contains the landmark ID
-
dispose(
) → Future< void> -
getCategoryById(
int categoryId) → LandmarkCategory? - Get the category by ID.
-
getLandmarks(
{int categoryId = LandmarkStore.invalidLandmarkCategId}) → List< Landmark> - Get the landmarks within the specified category.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
removeAllLandmarks(
) → void - Remove all landmarks from store.
-
removeCategory(
int categoryId, {bool removeLmkContent = false}) → void - Remove the specified category.
-
removeLandmark(
Landmark landmark) → void - Remove the specified landmark.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCategory(
LandmarkCategory category) → void - Update the specified category.
-
updateLandmark(
Landmark landmark) → void - Update the information about a landmark.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- invalidLandmarkCategId → const int
- uncategorizedLandmarkCategId → const int