INNER CODE UNIT · Dart

EditorState

AppFlowy-IO/appflowy-editor · lib/src/editor_state.dart:121

class EditorState {
  EditorState({
    required this.document,
    this.minHistoryItemDuration = const Duration(milliseconds: 50),
    int? maxHistoryItemSize,
  }) {
    undoManager = UndoManager(maxHistoryItemSize ?? 200);
    undoManager.state = this;
  }

  @Deprecated('use EditorState.blank() instead')
  EditorState.empty()
      : this(
          document: Document.blank(),
        );

  EditorState.blank({
    bool withInitialText = true,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…