updateByKey method
Implementation
InteractiveOverlayImage updateByKey(
Key? key, InteractiveOverlayImage newOverlay) {
final idx = indexOfKey(key);
this[idx] = newOverlay;
return this[idx];
}
InteractiveOverlayImage updateByKey(
Key? key, InteractiveOverlayImage newOverlay) {
final idx = indexOfKey(key);
this[idx] = newOverlay;
return this[idx];
}