toDelta method
Returns Delta
representation of this node.
Implementation
@override
Delta toDelta() {
final data = _value is EmbeddableObject
? (_value as EmbeddableObject).toJson()
: _value;
return Delta()..insert(data, style.toJson());
}