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