MemoInterceptorWrapper<T, A> constructor

const MemoInterceptorWrapper<T, A>({
  1. FunctionArgMemo<T, A>? onInit,
  2. FunctionValueMemo<T, A>? onValue,
  3. FunctionErrorMemo<T, A>? onError,
  4. FunctionArgMemo<T, A>? onFinish,
})

It´s a wrapper for a memoized function that allows you to define callbacks for initialization, successful completion, error handling, and finishing.

Implementation

const MemoInterceptorWrapper({
  FunctionArgMemo<T, A>? onInit,
  FunctionValueMemo<T, A>? onValue,
  FunctionErrorMemo<T, A>? onError,
  FunctionArgMemo<T, A>? onFinish,
})  : _onInit = onInit,
      _onValue = onValue,
      _onError = onError,
      _onFinish = onFinish;