setDeltaJson method
Implementation
Future<void> setDeltaJson(String deltaJson) async {
final editor = _quill;
if (editor == null) {
throw StateError(labels.editorNotReady);
}
final decoded = jsonDecode(deltaJson);
if (decoded is! Map || !decoded.containsKey('ops')) {
throw FormatException(labels.invalidDelta);
}
editor.setContentsDart(Map<String, dynamic>.from(decoded), 'api');
_changeDetectorRef.markForCheck();
}