ComputationCache<K, V> constructor
ComputationCache<K, V> ({})
Constructs an empty cache. The configs are as with Computed.new.
Implementation
ComputationCache(
{bool memoized = true,
bool assertIdempotent = true,
void Function(V value)? dispose,
void Function()? onCancel})
: _memoized = memoized,
_assertIdempotent = assertIdempotent,
_dispose = dispose,
_onCancel = onCancel;