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