dispose method
void
dispose()
Disposes this scope and all its dependencies.
This will call reset with force: true and notify middlewares
that the scope is being disposed.
After calling dispose, the scope should considered unusable.
Implementation
void dispose() {
reset(force: true);
_notifyScopeDispose();
}