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

Опубликовано: 04 Ноябрь 2019
на канале: Zaiste Programming
3,028
55

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.

Discord Channel:   / discord   Everyone is invited

#flutter #singleton #designpattern


Смотрите видео Streams Lifecycle for Managers via Singleton & Abstract Classes - Flutter in Practice 44 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Zaiste Programming 04 Ноябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,028 раз и оно понравилось 55 людям.