PathModel class
A saved raw route captured from live tracking.
Constructors
-
PathModel({required List<
LatLng> path, required double distance, required DateTime timestamp, required List<LatLng> customPoints}) - Creates a raw path model for storage or later navigation.
-
PathModel.fromJson(Map<
String, dynamic> json) -
Creates a PathModel from previously serialized JSON data.
factory
Properties
-
customPoints
→ List<
LatLng> -
Important user-defined points such as checkpoints or favorites.
final
- distance → double
-
Total path distance in kilometers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
path
→ List<
LatLng> -
Ordered coordinates that make up the tracked path.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Time at which this path model was saved.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this model into a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited