loadAll method

  1. @override
Future<List<PersistedRecord>> loadAll()
override

Loads every persisted record. Called once on Cache.hydrate.

Implementation

@override
Future<List<PersistedRecord>> loadAll() => _synchronized(() async {
      final raw = await _readRaw();
      return raw.values
          .whereType<Map<String, dynamic>>()
          .map(PersistedRecord.fromJson)
          .toList();
    });