Open
Description
I have an error using the null safety version
E/flutter ( 687): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '(BaseCluster, double, double) => MapMarker' is not a subtype of type '((BaseCluster?, double?, double?) => MapMarker)?'
I initialised the cluster in this way:
minZoom: minZoom,
maxZoom: maxZoom,
radius: 150,
extent: 4096,
nodeSize: 64,
points: markers,
createCluster: (
BaseCluster cluster,
double lng,
double lat,
) =>
MapMarker(
id: cluster.id.toString(),
latitude: lat,
longitude: lng,
isCluster: cluster.isCluster,
clusterId: cluster.id,
pointsSize: cluster.pointsSize,
childMarkerId: cluster.childMarkerId,
),
);
Do you know what the problem is?
Originally posted by @PaoloP98 in #12 (comment)
Metadata
Metadata
Assignees
Labels
No labels
Activity