dispose method
void
dispose()
Disposes subscriptions and the mounted screen.
Implementation
void dispose() {
for (final s in _subs) {
s.cancel();
}
_subs.clear();
_screen?.dispose();
ctx.router.stop();
}
Disposes subscriptions and the mounted screen.
void dispose() {
for (final s in _subs) {
s.cancel();
}
_subs.clear();
_screen?.dispose();
ctx.router.stop();
}