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