Pre function

Component Pre({
  1. String? className,
  2. String? style,
  3. String? id,
  4. Component? child,
  5. List<Component>? children,
  6. Map<String, String>? attributes,
  7. Map<String, EventCallback>? events,
  8. Key? key,
})

A preformatted text element.

The HTML <pre> element represents preformatted text.

Implementation

Component Pre({
  String? className,
  String? style,
  String? id,
  Component? child,
  List<Component>? children,
  Map<String, String>? attributes,
  Map<String, EventCallback>? events,
  Key? key,
}) {
  return jaspr.pre(
    resolveChildren(child, children),
    classes: className,
    styles: parseStyles(style),
    id: id,
    attributes: attributes,
    events: events,
    key: key,
  );
}