INNER CODE UNIT · Dart
ApplyOptions
AppFlowy-IO/appflowy-editor · lib/src/editor_state.dart:39
class ApplyOptions {
const ApplyOptions({
this.recordUndo = true,
this.recordRedo = false,
this.source,
this.inMemoryUpdate = false,
});
/// Whether the transaction should be recorded into the undo stack.
@Deprecated('Use [source] instead')
final bool recordUndo;
@Deprecated('Use [source] instead')
final bool recordRedo;
/// The source of the transaction. When set, takes precedence over
/// the legacy `recordUndo` and `recordRedo` flags for determining
/// how the transaction is recorded in the undo/redo history.