li constructor

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

The <li> HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

Implementation

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