code function

Component code(
  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 <code> HTML element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. By default, the content text is displayed using the user agent's default monospace font.

Implementation

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