update method
void
update(
- MarkerOptions options, {
- HTMLElement? newInfoWindowContent,
Updates the options of the wrapped gmaps.Marker
object.
This cannot be called after remove.
Implementation
void update(
gmaps.MarkerOptions options, {
HTMLElement? newInfoWindowContent,
}) {
assert(_marker != null, 'Cannot `update` Marker after calling `remove`.');
_marker!.options = options;
if (_infoWindow != null && newInfoWindowContent != null) {
_infoWindow.content = newInfoWindowContent;
}
}