RouteDeviationManager class

Manages geographical routes and provides functionality to add deviations and export to GPX format.

Constructors

RouteDeviationManager.new(List<Coordinates> originalRoute)
Creates a RouteDeviationManager with the given original route.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toGpxString String
Converts the current route to a GPX string.
no setter

Methods

addDeviation({required int deviationPointIndex, required double deviationLength, required double deviationDistance, required double skipDistance}) Future<bool>
Adds a deviation to the route at the specified index with the given parameters. Returns a Future
dispose() → void
Cleans up resources when the manager is no longer needed.
exportGpxToFile([String? fileName]) Future<String>
Exports the current route as a GPX file to device storage. Returns the path to the exported file.
getCurrentRoute() List<Coordinates>
Returns a copy of the current route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetRoute() → void
Resets the route to its original state, removing all deviations.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited