toDelta method

  1. @override
Delta toDelta()
override

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());
}