autoPlay method

Audio autoPlay(
  1. bool boolean
)

If specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading. Read more...

Implementation

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