label method

Option label(
  1. String text, {
  2. bool? removeIf,
})

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