$createImageNode function
Creates an image, applying any registered node replacement.
Implementation
ImageNode $createImageNode({
required String src,
String altText = '',
double width = 0,
double height = 0,
double maxWidth = ImageNode.defaultMaxWidth,
bool showCaption = false,
Map<String, Object?>? caption,
}) => $applyNodeReplacement(
ImageNode(
src: src,
altText: altText,
width: width,
height: height,
maxWidth: maxWidth,
showCaption: showCaption,
caption: caption,
),
);