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 [...]
read-only
coordinates List<T>
read-only
distance num
Sums up all the distances on the path [...]
read-only
first → T
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
last → T
read-only
nrOfCoordinates int
Returns the number of coordinates [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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 [...]