main_ constructor

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

The <main> HTML element represents the primary content of a document, distinct from content that is repeated across multiple pages such as site headers, footers, and navigation bars.

Implementation

const main_(
  this.children, {
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});