$def<R> method
Implementation
@mustCallSuper
R $def<R>(R Function() callback) {
_batchLock++;
final result = callback();
_batchLock--;
{
_prefixes.update(
iD,
(v) => v..remove(_batchLock),
ifAbsent: () => {},
);
}
return result;
}