EditorState constructor

EditorState(
  1. String initialText
)

Implementation

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