google_maps_cluster_manager
google_maps_cluster_manager copied to clipboard
Error after updating flutter
after updating i'm facing this issue here :
Future<Marker> Function(Cluster<Place>) get _markerBuilder =>
(cluster) async {}
ClusterManager _initClusterManager() {
return ClusterManager<Place>(items, _updateMarkers,
markerBuilder: _markerBuilder);
}
The argument type 'Future<Marker> Function(Cluster<Place>)' can't be assigned to the parameter type 'Future<Marker> Function(dynamic)?
I recently got the same error. Has anyone solved it?
Also build failed with error:
../../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/google_maps_cluster_manager-3.1.0/lib/src/cluster_manager.dart:8:1: Error: 'Cluster' is imported from both 'package:google_maps_cluster_manager/src/cluster.dart' and 'package:google_maps_flutter_platform_interface/src/types/cluster.dart'.
The reason and solution to the issue is described here