Path<T extends LatLng> class

Path of LatLng values

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

class Location extends LatLng {
    ....
}

final Path<Location> path = new Path<Location>(factory: locationFactory);

Constructors

Path({LatLngFactory factory = _defaultLatLngFactory})
Path.from(Iterable<T> coordinates, {LatLngFactory factory = _defaultLatLngFactory})

Properties

center LatLng
Calculates the center of a collection of geo coordinates
no setter
coordinates List<T>
no setter
distance double
Sums up all the distances on the path
no setter
first → T
no setter
hashCode int
The hash code for this object.
no setterinherited
last → T
no setter
nrOfCoordinates 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(double 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