onMouseup property
Stream<MapMouseEvent>
get
onMouseup
Implementation
Stream<MapMouseEvent> get onMouseup {
late StreamController<MapMouseEvent> sc; // ignore: close_sinks
late MapsEventListener mapsEventListener;
void start() => mapsEventListener = Event.addListener(
this,
'mouseup',
(MapMouseEvent event) => sc.add(event),
);
void stop() => mapsEventListener.remove();
sc = StreamController<MapMouseEvent>(
onListen: start,
onCancel: stop,
onResume: start,
onPause: stop,
);
return sc.stream;
}