EditorState constructor

EditorState(
  1. String initialText
)

Implementation

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