meta static method

HeadTag meta({
  1. String? charset,
  2. String? name,
  3. String? content,
  4. String? property,
  5. Map<String, Object?> props = const {},
})

Creates a meta head tag descriptor.

Implementation

static HeadTag meta({
  String? charset,
  String? name,
  String? content,
  String? property,
  Map<String, Object?> props = const {},
}) {
  return HeadTag(
    'meta',
    props: {
      ...props,
      if (charset != null) 'charset': charset,
      if (name != null) 'name': name,
      if (content != null) 'content': content,
      if (property != null) 'property': property,
    },
  );
}