ComputationCache<K, V> constructor

ComputationCache<K, V>({
  1. bool memoized = true,
  2. bool assertIdempotent = true,
  3. void dispose(
    1. V value
    )?,
  4. void onCancel()?,
})

Implementation

ComputationCache(
    {bool memoized = true,
    bool assertIdempotent = true,
    void Function(V value)? dispose,
    void Function()? onCancel})
    : _memoized = memoized,
      _assertIdempotent = assertIdempotent,
      _dispose = dispose,
      _onCancel = onCancel;