UndoRedoPersistState<T> class
Undo-redo and persist state
Constructors
-
UndoRedoPersistState({required int undoStackLength, required PersistState<
T> ? persistanceProvider}) - Undo-redo and persist state
Properties
- canRedoState → bool
-
Whether the state can be redone.
no setter
- canUndoState → bool
-
Whether the state can be done
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
persistanceProvider
→ PersistState<
T> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- undoStackLength → int
-
final
Methods
-
call(
SnapState< T> snap, InjectedImp<T> injected) → void -
clearUndoStack(
) → void - Clear undoStack;
-
deleteState(
InjectedImp< T> injected) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
persistedCreator(
) → FutureOr< T?> -
persistOnDispose(
T state) → void -
redoState(
) → SnapState< T> ? - redo to the next valid state (isWaiting and hasError are ignored)
-
toString(
) → String -
A string representation of this object.
inherited
-
undoState(
) → SnapState< T> ? - undo to the last valid state (isWaiting and hasError are ignored)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
storageProviders
→ Set<
PersistState> -
final
Static Methods
-
cleanStorageProviders(
) → void