feat(doc): document's state

This commit is contained in:
Vincent Chan 2022-08-12 14:00:56 +08:00
parent f2c624778e
commit f0ed15440a

View File

@ -26,6 +26,15 @@ enum CursorUpdateReason {
others,
}
/// The state of the editor.
///
/// The state including:
/// - The document to render
/// - The state of the selection.
///
/// [EditorState] also includes the services of the editor:
/// - Selection service
/// - Scroll service
class EditorState {
final StateTree document;