OnPolygonCallback typedef

OnPolygonCallback = Polygon<Object> Function(List<LatLng> points, List<List<LatLng>>? holes, Map<String, dynamic> properties)

A callback function that creates a Polygon instance from points that make up the outer ring, a list of holes, and GeoJSON object properties.

Implementation

typedef OnPolygonCallback = Polygon Function(List<LatLng> points,
    List<List<LatLng>>? holes, Map<String, dynamic> properties);