selected method
If present, this attribute indicates that the option is initially selected. Read more...
Implementation
Option selected(bool boolean) {
if (boolean && node.attrs != null) {
VirtualAttr attr = VirtualAttr('selected', '');
node.attrs!.add(attr);
}
return this;
}