$th function

THElement $th({
  1. Object? id,
  2. Object? classes,
  3. Object? style,
  4. Map<String, String>? attributes,
  5. int? colspan,
  6. int? rowspan,
  7. String? abbr,
  8. String? scope,
  9. Object? content,
  10. bool? hidden,
  11. bool commented = false,
})

Creates a th node.

Implementation

THElement $th(
        {Object? id,
        Object? classes,
        Object? style,
        Map<String, String>? attributes,
        int? colspan,
        int? rowspan,
        String? abbr,
        String? scope,
        Object? content,
        bool? hidden,
        bool commented = false}) =>
    THElement(
        id: id,
        classes: classes,
        style: style,
        attributes: {
          if (colspan != null) 'colspan': '$colspan',
          if (rowspan != null) 'rowspan': '$rowspan',
          if (abbr != null) 'abbr': abbr,
          if (scope != null) 'scope': scope,
          ...?attributes,
        },
        content: content,
        hidden: hidden,
        commented: commented);