RouteBookmarks class
Route bookmarks class
Create an instance using RouteBookmarks.create method
Constructors
- RouteBookmarks.init(int id, int mapId)
Properties
- autoDeleteMode ↔ bool
-
Get auto delete mode.
getter/setter pair
- filePath → String
-
Get bookmarks collection path.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapId → int
-
no setter
- pointerId → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Get number of routes.
no setter
- sortOrder ← RouteBookmarksSortOrder
-
Change the sort order of the routes.
no getter
Methods
-
add(
String name, List< Landmark> waypoints, {RoutePreferences? preferences, bool overwrite = false}) → void - Add a new route / update existing.
-
addTrips(
String filename) → int - Add trips from the given filename.
-
clear(
) → void - Clear all routes bookmarks.
-
dispose(
) → void -
exportToFile(
int index, String path) → GemError - Export the route to the given file.
-
find(
String name) → int - Find a trip by name.
-
getName(
int index) → String - Get name of the route specified by index.
-
getPreferences(
int index) → RoutePreferences - Get preferences of the route specified by index.
-
getTimestamp(
int index) → DateTime - Get timestamp of the route specified by index.
-
getWaypoints(
int index) → List< Landmark> - Get waypoints of the route specified by index.
-
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
-
remove(
int index) → void - Remove the item at the specified index.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
int index, {String? name, List< Landmark> ? waypoints, RoutePreferences? preferences}) → void - Update a route
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
String name) → RouteBookmarks - Creates a new RouteBookmarks object based on a path