label method

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

The name of the group of options, which the browser can use when labeling the options in the user interface. Read more...

Implementation

OptGroup label(String text, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('label', text);
    node.attrs!.add(attr);
  }
  return this;
}