$caption function

CAPTIONElement $caption({
  1. Object? id,
  2. Object? classes,
  3. Object? style,
  4. String? captionSide,
  5. Map<String, String>? attributes,
  6. Object? content,
  7. bool? hidden,
  8. String? role,
  9. String? ariaLabel,
  10. Map<String, Object?>? aria,
  11. int? tabIndex,
  12. bool commented = false,
})

Creates a caption node.

Implementation

CAPTIONElement $caption({
  Object? id,
  Object? classes,
  Object? style,
  String? captionSide,
  Map<String, String>? attributes,
  Object? content,
  bool? hidden,
  String? role,
  String? ariaLabel,
  Map<String, Object?>? aria,
  int? tabIndex,
  bool commented = false,
}) {
  return CAPTIONElement(
    id: id,
    classes: classes,
    style: captionSide != null && captionSide.isNotEmpty
        ? (style != null
              ? 'caption-side: $captionSide; ${CSS(style).style}'
              : 'caption-side: $captionSide;')
        : style,
    attributes: attributes,
    content: content,
    hidden: hidden,
    role: role,
    ariaLabel: ariaLabel,
    aria: aria,
    tabIndex: tabIndex,
    commented: commented,
  );
}