loop method

Video loop(
  1. bool boolean
)

If specified, the audio player will automatically seek back to the start upon reaching the end of the video. Read more...

Implementation

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