onMouseDown property
Stream<MouseEvent>
onMouseDown
Fired when a mouse is clicked. You can preventDefault the event to signal that CodeMirror should do no further handling.
Implementation
Stream<MouseEvent> get onMouseDown =>
onEvent('mousedown', argCount: 2).cast<MouseEvent>();