Streams Lifecycle for Managers via Singleton & Abstract Classes - Flutter in Practice 44

preview_player
Показать описание
This is a followup to the episode 43. Previously we re-architected the Overseer class so that it became a Singleton. In this episode we use the Overseer class to control the resources held by mangers.

Each manager in our application is responsible for some streams that are connected with some widgets. With the help of interfaces (which in Dart are available through abstract classes) we specify the needed API for each manager. This way we can now ask them to dispose of their streams via the dispose method. We also integrate a preliminary mechanism to control the resource lifecycle for managers in the application.

Flutter in Practice is a free programming course that teaches how to write a mobile application using Flutter framework and Dart programming language. Instead of teaching concepts and ideas in both Flutter and Dart, this course showcases a process of building an actual, mobile application.

In this tutorial, we will create an email client that exclusively supports JMAP protocol.

#flutter #singleton #designpattern
Рекомендации по теме
Комментарии
Автор

Great Videos! I just finished the whole course and it is really awesome! Thank you very much it helped a lot! :)

MrNederlande
Автор

Watch all the way through. Greatly appreciate it. Can't wait until the next set Flutter videos!

vOnez