TimeEl constructor

TimeEl({
  1. String? text,
  2. String? dateTime,
  3. String? className,
  4. String? style,
  5. Map<String, String>? attrs,
  6. List<BloomNode> children = const [],
  7. Map<String, BloomEventHandler>? on,
})

Creates a <time> element descriptor with dateTime attribute shorthand.

Implementation

TimeEl(
    {super.text,
    String? dateTime,
    super.className,
    super.style,
    Map<String, String>? attrs,
    super.children = const [],
    super.on})
    : super('time',
          attrs: _mergeAttrs(
              attrs, {if (dateTime != null) 'datetime': dateTime}));