notify method
Implementation
void notify(String content) {
if (content.isEmptyString) {
return;
}
if (!content.endsWith("\n")) {
content += "\n";
}
Map<String, String> nodeMap = {"insert": content};
List<Map<String, String>> deltaList = [nodeMap];
_controller?.document = Document.fromJson(deltaList);
_controller?.moveCursorToEnd();
}