iterate method
Iterate every access-log entry in insertion order. Used by the persistence migrator to copy access-log content from one backend to another.
Implementation
@override
Stream<AccessLogEntry> iterate() async* {
// Access log uses a LazyBox; fetch each value asynchronously
// through the keystore's typed get, in insertion (key) order.
final keys = _accessLogKeyStore.getBox().keys.toList();
keys.sort((a, b) => (a as int).compareTo(b as int));
for (final key in keys) {
final entry = await _accessLogKeyStore.get(key as int);
if (entry != null) yield entry;
}
}