allow method

IFrame allow(
  1. List<String> permissionList, {
  2. bool? removeIf,
})

Specifies a Permissions Policy for the <iframe>. Read more...

Implementation

IFrame allow(List<String> permissionList, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr =
        VirtualAttr('allow', _html.listToSemicolons(permissionList));
    node.attrs!.add(attr);
  }
  return this;
}