ComputedStore<T> constructor
ComputedStore<T> (
- T _compute(
- StoreReader watch
- bool equals(
- T previous,
- T next
Creates a ComputedStore with the given _compute function.
equals overrides how the new value is compared with the
previous one; defaults to ==.
Implementation
ComputedStore(this._compute, {bool Function(T previous, T next)? equals})
: _equals = equals ?? ((a, b) => a == b);