label method

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

A user-readable title of the text track which is used by the browser when listing available text tracks. Read more...

Implementation

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