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, {
int? limit,
this.onUpdate,
}) : super(limit: limit) {
if (onUpdate != null) {
onUpdate!(_state);
}
}