$td function

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

Creates a td node.

Implementation

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