preRemoveHooks property
Hooks invoked synchronously before a single-key remove. Each hook is awaited in order; if a hook throws, the remove is aborted and the exception propagates.
Implementation
@override
final List<Future<void> Function(String key, {required bool skipCommit})>
preRemoveHooks = [];