paragraphNode function
Implementation
Node paragraphNode({
String? text,
Delta? delta,
String? textDirection,
Attributes? attributes,
Iterable<Node> children = const [],
}) {
return Node(
type: ParagraphBlockKeys.type,
attributes: {
ParagraphBlockKeys.delta:
(delta ?? (Delta()..insert(text ?? ''))).toJson(),
if (attributes != null) ...attributes,
if (textDirection != null)
ParagraphBlockKeys.textDirection: textDirection,
},
children: children,
);
}