Memo1<TOut, TIn1> class abstract

Provides an extendable class that implements memoizable results

Constructors

Memo1({required TOut memoizedFunction(TIn1), MemoizeOn memoizeOnP1 = MemoizeOn.varyByParam})

Properties

hashCode int
The hash code for this object.
no setterinherited
memoizedFunction → TOut Function(TIn1)
final
memoizeOnP1 MemoizeOn
final
previousResults List<Tuple2<TOut, TIn1>?>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callInternal(TIn1 p1) → TOut
invalidateCacheAllInternal() → void
removes all the previous saved results
invalidateCacheInternal({TIn1? p1}) → void
removes all the previous saved results based on the parameter
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited