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