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