meta function

ElementNode meta({
  1. String? name,
  2. String? content,
  3. String? charset,
  4. String? httpEquiv,
})

Implementation

ElementNode meta({
  String? name,
  String? content,
  String? charset,
  String? httpEquiv,
}) {
  return el(
    'meta',
    attrs: {
      if (name != null) 'name': StringAttribute(name),
      if (content != null) 'content': StringAttribute(content),
      if (charset != null) 'charset': StringAttribute(charset),
      if (httpEquiv != null) 'http-equiv': StringAttribute(httpEquiv),
    },
    children: const [],
  );
}