toDelta method

  1. @override
Delta toDelta()
override

Implementation

@override
Delta toDelta() {
  final data = _value is Embeddable ? (_value as Embeddable).toJson() : _value;
  return Delta()..insert(data, style.toJson());
}