link function

ElementNode link({
  1. required String rel,
  2. required String href,
  3. String? type,
  4. String? media,
})

Implementation

ElementNode link({
  required String rel,
  required String href,
  String? type,
  String? media,
}) {
  return el(
    'link',
    attrs: {
      'rel': StringAttribute(rel),
      'href': StringAttribute(href),
      if (type != null) 'type': StringAttribute(type),
      if (media != null) 'media': StringAttribute(media),
    },
    children: const [],
  );
}