updateMarkers static method

Future<void> updateMarkers(
  1. int mapId,
  2. Set<Marker> previous,
  3. Set<Marker> current
)

Implementation

static Future<void> updateMarkers(
    int mapId, Set<Marker> previous, Set<Marker> current) async {
  var markerUpdates = MarkerUpdates.from(previous, current);
  await GoogleMapsFlutterPlatform.instance
      .updateMarkers(markerUpdates, mapId: mapId);
}