onFocus method

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

The focus event fires when an element has received focus. The event does not bubble, but the related focusin event that follows does bubble. Read more...

Implementation

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