onError method

void onError(
  1. Memo<T, A> memo,
  2. A arg,
  3. Object error
)

It's called when an error occurs during the execution of the memoized function.

Implementation

void onError(Memo<T, A> memo, A arg, Object error) {}