image_node library

The image node on its own, without the widgets that draw it.

package:lexical_image/lexical_image.dart brings the Flutter view, the resize handles and the commands with it. A program that only reads or writes documents — a server converting mail, a conformance suite — needs the node and nothing else, and this library is exactly that: it imports lexical_core and no Flutter.

Classes

ImageNode
An image in the document.

Properties

imageNodes → List<NodeSpec<LexicalNode>>
The node specs this package contributes; the same list lexical_image.dart exports.
no setter

Functions

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