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

Published: 04 November 2019
on channel: 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


Watch video Streams Lifecycle for Managers via Singleton & Abstract Classes - Flutter in Practice 44 online without registration, duration hours minute second in high quality. This video was added by user Zaiste Programming 04 November 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,028 once and liked it 55 people.