EditorState constructor
EditorState(
- String initialText
Implementation
EditorState(String initialText)
: _text = initialText,
_cursorOffset = initialText.length,
_selection = null,
_document = DocumentNode(const []),
_parseSuccess = true {
if (initialText.isNotEmpty) {
_reparse();
}
}