putThunk method

void putThunk(
  1. K key,
  2. BridgedClass thunk()
)

Registers key as a deferred thunk. The BridgedClass is not built until operator [] is first called for key; any previously memoized result is dropped so the new thunk wins.

Implementation

void putThunk(K key, BridgedClass Function() thunk) {
  _thunks[key] = thunk;
  _memo.remove(key);
}