waitForAllFetches method

Future<void> waitForAllFetches()

Awaits the completion of all ongoing image fetches.

Implementation

Future<void> waitForAllFetches() async {
  final tasks = _inFlight.values.toList();
  _log('Waiting for ${tasks.length} fetches');
  await Future.wait(tasks);
  _log('All fetches complete');
}