It's called when an error occurs during the execution of the memoized function.
@override void onError(Memo<T, A> memo, A arg, Object error) { _onError?.call(memo, arg, error); }