Th constructor

Th({
  1. String? text,
  2. String? scope,
  3. int? colSpan,
  4. int? rowSpan,
  5. String? className,
  6. String? style,
  7. Map<String, String>? attrs,
  8. List<BloomNode> children = const [],
  9. Map<String, BloomEventHandler>? on,
})

Creates a <th> table header cell descriptor.

Implementation

Th({
  super.text,
  String? scope,
  int? colSpan,
  int? rowSpan,
  super.className,
  super.style,
  Map<String, String>? attrs,
  super.children = const [],
  super.on,
}) : super(
        'th',
        attrs: _mergeAttrs(attrs, {
          if (scope != null) 'scope': scope,
          if (colSpan != null) 'colspan': '$colSpan',
          if (rowSpan != null) 'rowspan': '$rowSpan',
        }),
      );