hydrate method
Gets the data from the cache, if it exists, and emits it to the stream.
Implementation
@override
Future<Data?> hydrate({bool refreshAfter = true}) async {
final stopwatch = Stopwatch()..start();
await Future.wait(
repositories.map(
(repository) => repository.hydrate(refreshAfter: refreshAfter),
),
);
stopwatch.stop();
Repository.logger.call(
'Repository($name): '
'hydrated in ${stopwatch.elapsedMilliseconds}ms',
);
return null;
}