Th constructor
Th({})
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',
}),
);