We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need know when the module was disposed. How do I do that?
Do exist some callback?
The text was updated successfully, but these errors were encountered:
Good question.
I was trying to do it last week but was unsuccessful.
I wanna know if is possible to know when module is initialized (navigation push) and when is disposed (navigation pop).
Sorry, something went wrong.
You can extends Disposable in the module and override the dispose method.
Disposable
dispose
Using Disposable interface
Doing this does not require BindConfig, but creates a link between the package and the class.
class MyController implements Disposable { final controller = StreamController(); @override void dispose() { controller.close(); } }
Source: https://github.com/Flutterando/modular/blob/master/doc/docs/flutter_modular/dependency-injection.md
Edit1: It is supposed to be used in the binds, but you could try to check if it works with Module as well.
No branches or pull requests
I need know when the module was disposed.
How do I do that?
Do exist some callback?
The text was updated successfully, but these errors were encountered: