link function

Element link({
  1. required String rel,
  2. required String href,
  3. String? id,
  4. String? classes,
  5. Map<String, Object?> attributes = const {},
})

A <link rel=... href=...>; attributes carries integrity, crossorigin, media, as, type...

Implementation

Element link({
  required String rel,
  required String href,
  String? id,
  String? classes,
  Map<String, Object?> attributes = const {},
}) => _tag('link', const [], id, classes, {
  'rel': rel,
  'href': href,
  ...attributes,
});