MemoMultiInterceptor<T, A> class
It allows multiple memoization interceptors to be used together.
- Inheritance
-
- Object
- MemoInterceptor<
T, A> - MemoMultiInterceptor
Constructors
-
MemoMultiInterceptor(List<
MemoInterceptor< interceptors)T, A> > -
It allows multiple memoization interceptors to be used together.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
interceptors
→ List<
MemoInterceptor< T, A> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
Memo< T, A> memo, A arg, Object error) → void -
It's called when an error occurs during
the execution of the memoized function.
override
-
onFinish(
Memo< T, A> memo, A arg) → void -
It's called after the memoized function has completed its execution,
regardless of whether it was successful or encountered an error.
override
-
onInit(
Memo< T, A> memo, A arg) → void -
It's called when the memoized function is invoked
for the first time with a new set of arguments.
It allows you to perform any initialization logic
or side effects before the calculation is performed.
override
-
onValue(
Memo< T, A> memo, A arg, T value, bool fromCache) → void -
It's called after the memoized function has completed its execution.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited