dispose method
void
dispose()
Dispose of this application and all of its components.
Implementation
void dispose() {
_onErrorSub.cancel();
_onMicroSub.cancel();
// Destroying components removes them from this list. Destroying them in
// reverse order by index ensures their removal is efficient and does not
// cause a concurrent modification during iteration error.
for (var i = _rootComponents.length - 1; i >= 0; --i) {
_rootComponents[i].destroy();
}
for (final listener in _disposeListeners) {
listener();
}
}