onFocus method
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;
}