CachedComputation<R, T, K> constructor
CachedComputation<R, T, K> (
- R function(
- T
- K keyGenerator(
- T
Implementation
CachedComputation(this.function, [K Function(T)? keyGenerator])
: keyGenerator = keyGenerator ?? ((T value) => deepCopy(value as K));