SimpleStack<T> constructor
SimpleStack<T> (
- T _state, {
- int? limit,
- void onUpdate(
- T val
Simple stack for keeping track of changes and easy callback for new state changes
Implementation
SimpleStack(this._state, {super.limit, this.onUpdate}) {
if (onUpdate != null) {
onUpdate!(_state);
}
}