preload method

Video preload(
  1. String value, {
  2. bool? removeIf,
})

This attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience regarding what content is loaded before the video is played Read more...

Implementation

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