updateQuadByKey method

InteractiveOverlayImage updateQuadByKey(
  1. Key? key,
  2. QuadLatLng newCorners
)

Optionnel mais pratique : update quad complet en une fois

Implementation

InteractiveOverlayImage updateQuadByKey(Key? key, QuadLatLng newCorners) {
  final idx = indexOfKey(key);
  final old = this[idx];
  this[idx] = old.copyWith(corners: newCorners);
  return this[idx];
}