LatLngFactory typedef
Necessary for creating new instances T extends LatLng (Path<T extends LatLng&rt;)
class Location extends LatLng {
....
}
final Path<Location> path = Path<Location>(factory: locationFactory);
Implementation
typedef LatLngFactory = LatLng Function(double latitude, double longitude);