clear method

Future<void> clear()

Drop every entry from the underlying box AND the in-memory expiry index, without closing the box. Used by AtPersistenceBundle.clear for cheap test isolation.

Implementation

Future<void> clear() async {
  await _getBox().clear();
  _expiryIndex.clear();
}