import "package:latlng/latlng.dart";
import 'package:google_maps_cluster_manager/google_maps_cluster_manager.dart';
class Place with ClusterItem {
final String name;
final LatLng latLng;
Place({required this.name, required this.latLng});
@override
LatLng get location => latLng;
}
The below is the problem text
'Place.location' ('LatLng Function()') isn't a valid override of 'ClusterItem.location' ('LatLng Function()').dart[invalid_override](https://dart.dev/diagnostics/invalid_override)
cluster_item.dart(5, 14): The member being overridden.
So I cannot use this package.
Please fix this problem!
The sample code in README does not work at all.
The below is the problem text
So I cannot use this package. Please fix this problem!