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