$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. 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,
    bool commented = false}) {
  return CAPTIONElement(
      id: id,
      classes: classes,
      style: isNotEmptyString(captionSide)
          ? (style != null
              ? 'caption-side: $captionSide; ${CSS(style).style}'
              : 'caption-side: $captionSide;')
          : style,
      attributes: attributes,
      content: content,
      hidden: hidden,
      commented: commented);
}