LatLngFactory typedef

LatLngFactory = LatLng 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 LatLngFactory = LatLng Function(double latitude, double longitude);