onDrag method

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

The drag event is fired every few hundred milliseconds as an element or text selection is being dragged by the user. Read more...

Implementation

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