onMouseDown method

WidgetElementVisible onMouseDown(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)
inherited

The mousedown event is fired at an Element when a pointing device button is pressed while the pointer is inside the element. Read more...

Implementation

WidgetElementVisible onMouseDown(Function(Element, Event)? fun) {
  if (fun != null) on.call('mousedown', fun);
  return this;
}