PVCtx constructor

PVCtx({
  1. required PVCache cache,
  2. required ActionType actionType,
  3. String? initialKey,
  4. dynamic initialEntryValue,
  5. required Map<String, dynamic> initialMeta,
})

Create a new context for a cache operation.

Typically created by PVCache methods, not by user code.

Implementation

PVCtx({
  required this.cache,
  required this.actionType,
  this.initialKey,
  this.initialEntryValue,
  required this.initialMeta,
}) {
  resolvedKey = initialKey;
  resolvedMetaKey = initialMeta['key'] ?? '';
  entryValue = initialEntryValue;
  runtimeMeta = {};
}