ソースを参照

feat(doc): document's state

Vincent Chan 2 年 前
コミット
f0ed15440a

+ 9 - 0
frontend/app_flowy/packages/flowy_editor/lib/src/editor_state.dart

@@ -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;