setDelta method

Future setDelta(
  1. Map delta
)

Sets the Delta object in the editor.

The setDelta method is used to set the Delta object in the editor, overriding any existing text with the new content.

Implementation

Future setDelta(Map delta) async {
  return await _editorKey?.currentState?._setDeltaToEditor(deltaMap: delta);
}