autoPlay method

Video autoPlay(
  1. bool boolean
)

if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data. Read more...

Implementation

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