Search posts, tags, users, and pages
Learn how to observe a bloc by simply overriding `onChange`, `onTransition`, `onEvent`, `onError` methods.
Dhruv Nakum
@Dhruv-Nakum · India
Developer 👨💻
I'm a mobile/web developer 👨💻 who loves to build projects and share valuable tips for programmers Follow me for Flutter, React/Next.js, and other awesome tech-related stuff 😉
Markdown supported · ⌘↵ to post
Ovidiu Usvat
You should update the way you set up the global observer. Now runZoned is obsolate. Instead you should use Bloc.observer = MyGlobalObserver()
runZoned
Bloc.observer = MyGlobalObserver()
Omar J
thank u so much for all your efforts 😊
Thank you Omar, Glad you liked it 🙂
Ovidiu Usvat
You should update the way you set up the global observer. Now
runZonedis obsolate. Instead you should useBloc.observer = MyGlobalObserver()