as method
It specifies the type of content being loaded
by the <link>
, which is necessary for request matching,
application of correct content security policy,
and setting of correct Accept request header.
Read more...
Implementation
Link as(String type, {bool? removeIf}) {
if (removeIf != true && node.attrs != null) {
VirtualAttr attr = VirtualAttr('as', type);
node.attrs!.add(attr);
}
return this;
}