Path<T extends LatLng> class

Path of GeoPosition values

If you use Path with Generics - check out this sample:

class Location extends LatLng { .... }

Path

Constructors

Path({GeoPositionFactory geoPositionFactory = _defGeoPositionFactory, Distance getDistance = const Distance()})
Path.from(List<T> coordinates, {GeoPositionFactory geoPositionFactory = _defGeoPositionFactory, Distance getDistance = const Distance()})

Properties

center LatLng
Calculates the center of a collection of geo coordinates
no setter
coordinates List<T>
getter/setter pair
distance double
Sums up all the distances on the path
no setter
first → T
no setter
geoPositionFactory GeoPositionFactory
final
getDistance Distance
final
hashCode int
The hash code for this object.
no setterinherited
last → T
no setter
numCoordinates int
Returns the number of coordinates
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T value) → void
Add new T coordinate to path
addAll(List<T> values) → void
Add all coordinates from List<T> to path
clear() → void
Removes all coordinates from path
equalize(num distanceInMeterPerTime, {bool smoothPath = true}) Path<LatLng>
Splits the path into even sections.
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
operator [](int index) → T
Returns the LatLng coordinate form index