$caption function
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);
}