disposeAll method
Disposes of all Resources fetched since the last call to disposeAll.
Implementation
Future<void> disposeAll() {
var done = Future.wait(_resources.map((r) => r._dispose(this)));
_resources.clear();
return done.then((_) => null);
}