h2 function

Component h2(
  1. List<Component> children, {
  2. Key? key,
  3. String? id,
  4. String? classes,
  5. Styles? styles,
  6. Map<String, String>? attributes,
  7. Map<String, EventCallback>? events,
})

The <h1> to <h6> HTML elements represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest.

Implementation

Component h2(List<Component> children,
    {Key? key,
    String? id,
    String? classes,
    Styles? styles,
    Map<String, String>? attributes,
    Map<String, EventCallback>? events}) {
  return DomComponent(
    tag: 'h2',
    key: key,
    id: id,
    classes: classes,
    styles: styles,
    attributes: attributes,
    events: events,
    children: children,
  );
}