imageNode function
Implementation
Node imageNode({
required String url,
String align = 'center',
double? height,
double? width,
}) {
return Node(
type: ImageBlockKeys.type,
attributes: {
ImageBlockKeys.url: url,
ImageBlockKeys.align: align,
ImageBlockKeys.height: height,
ImageBlockKeys.width: width,
},
);
}