PostEvictionDelegate typedef
PostEvictionDelegate =
void Function(Object key, Object? value, EvictionReason reason, Object? state)
Signature for callbacks that are called when a cache entry is evicted.
Parameters:
key: The key of the evicted cache entry.value: The value of the evicted cache entry.reason: The reason why the entry was evicted.state: Optional state that was provided when registering the callback.
Implementation
typedef PostEvictionDelegate = void Function(
Object key,
Object? value,
EvictionReason reason,
Object? state,
);