GeoPath<T extends GeoLatLng>.from constructor

GeoPath<T extends GeoLatLng>.from(
  1. Iterable<T> coordinates, {
  2. LatLngFactory factory = _defaultLatLngFactory,
})

Implementation

GeoPath.from(final Iterable<T> coordinates, { final LatLngFactory factory: _defaultLatLngFactory })
    : _coordinates = new List<T>.from(coordinates), _latLngFactory = factory {

    GValidate.notNull(coordinates);
}