Element constructor

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

Implementation

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