dispose method
Releases resources owned by this module.
The application owns a module as soon as it is yielded to
AppContext.create. This method must therefore tolerate registration or
initialization that did not start or complete.
Implementation
@override
Future<void> dispose(AppContext context) async {
await _frames?.cancel();
}