controls method

Audio controls(
  1. bool boolean
)

If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback. Read more...

Implementation

Audio controls(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('controls', '');
    node.attrs!.add(attr);
  }
  return this;
}