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