el function

Element el(
  1. String tag, [
  2. List<Object?> children = const [],
  3. String? id,
  4. String? classes,
  5. Map<String, Object?> attributes = const {},
])

Any element: el('details', [...], attributes: {'open': true}).

Implementation

Element el(
  String tag, [
  List<Object?> children = const [],
  String? id,
  String? classes,
  Map<String, Object?> attributes = const {},
]) => Element(
  tag,
  children: children,
  id: id,
  classes: classes,
  attributes: attributes,
);