debugPendingSaves property
Awaits every save queued so far — lets a test deterministically wait
for a burst of rapid consumeEnergy/regen writes to fully settle
instead of guessing a delay (same convention as the sibling ledger
services fixed in BUG-45).
Implementation
@visibleForTesting
Future<void> get debugPendingSaves => _saveChain;