Skip to content
New issue

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

How to close stream? #527

Open
SyedAbdulBasit7 opened this issue Jan 24, 2024 · 2 comments
Open

How to close stream? #527

SyedAbdulBasit7 opened this issue Jan 24, 2024 · 2 comments

Comments

@SyedAbdulBasit7
Copy link

No description provided.

@ookami-kb
Copy link
Contributor

Can you be more specific, please?

@SyedAbdulBasit7
Copy link
Author

@ookami-kb Thank you for reply

I am currently working on a Flutter project and in quiz screen where I utilize a stream _currentMode initialized with watchKioskMode(). My goal is to ensure the proper disposal of this stream when the quiz screen is disposed, with the aim of avoiding any potential memory leaks or other related issues. Also I want to initialize it again when I open quiz screen again.

late final Stream<KioskMode> _currentMode = watchKioskMode();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants