SimpleStack<T> constructor

SimpleStack<T>(
  1. T _state, {
  2. int? limit,
  3. void onUpdate(
    1. 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);
  }
}