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