label method
This attribute is text for the label indicating the meaning of the option. Read more...
Implementation
Option label(String text, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('label', text);
node.attrs!.add(attr);
}
return this;
}