autoFocus method
The autofocus global attribute indicating
that an element should be focused on page load,
or when the <dialog>
that it is part of is displayed.
Read more...
Implementation
WidgetElement autoFocus(bool boolean) {
if (boolean && node.attrs != null) {
VirtualAttr attr = VirtualAttr('autofocus', '');
node.attrs!.add(attr);
}
return this;
}