LatLngFactory typedef

LatLngFactory = GeoLatLng Function(double latitude, double longitude)

Necessary for creating new instances T extends LatLng (Path

class Location extends LatLng {
    ....
}

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

Implementation

typedef GeoLatLng LatLngFactory(final double latitude, final double longitude);