updatePointByKey method

Marker updatePointByKey(
  1. Key? key,
  2. LatLng latlng
)

Implementation

Marker updatePointByKey(Key? key, LatLng latlng) {
  final idx = indexOfKey(key);
  final oldMarker = this[idx];
  this[idx] = oldMarker.copyWith(point: latlng);
  return this[idx];
}