onFinish method

  1. @override
void onFinish(
  1. Memo<T, A> memo,
  2. A arg
)
override

It's called after the memoized function has completed its execution, regardless of whether it was successful or encountered an error.

Implementation

@override
void onFinish(Memo<T, A> memo, A arg) {
  _onFinish?.call(memo, arg);
}