onError method

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

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

Implementation

@override
void onError(Memo<T, A> memo, A arg, Object error) {
  _onError?.call(memo, arg, error);
}