SimpleStack<T> class

Inheritance

Constructors

SimpleStack(T _state, {int? limit, void onUpdate(T val)?})
Simple stack for keeping track of changes and easy callback for new state changes

Properties

canRedo bool
Can redo the previous change
no setterinherited
canUndo bool
Can undo the previous change
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
history List<Change>
List of changes in the history
no setterinherited
limit int?
Limit changes to store in the history
getter/setter pairinherited
onUpdate ↔ (void Function(T val)?)
getter/setter pair
redos List<Change>
List of changes in the redo stack
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ↔ T
Current state
getter/setter pair

Methods

add<T>(Change<T> change) → void
Add New Change and Clear Redo Stack
inherited
addGroup<T>(List<Change<T>> changes) → void
Add New Group of Changes and Clear Redo Stack
inherited
clear() → void
Clear Undo History
inherited
clearHistory() → void
Clear Undo History
inherited
modify(T val) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redo() → void
Redo Previous Undo
inherited
toString() String
A string representation of this object.
inherited
undo() → void
Undo Last Change
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited