Ep.3 - Singleton | Flutter Design Patterns

preview_player
Показать описание
This is the third episode of Design Patterns Series in Flutter, designed for beginners. In this episode, we are going to understand what Singleton is. We will go through an overly complicated definition, understand it using analogy, take dart example and understand the various ways of using Singleton, then understand when and why to use this design pattern along with the disadvantages it brings. At last, we also see how to use Singleton in Abstract Factory Pattern, pattern discussed in the 2nd episode.

Timestamps:
(00:00) Introduction
(00:07) Definition (Singleton)
(00:17) Analogy (Singleton)
(01:23) Code Example Approach 1 (Singleton)
(11:00) Code Example Approach 2 (Singleton)
(12:09) Code Example Approach 3 (Singleton)
(15:16) Use Cases (Singleton)
(17:35) Advantages (Singleton)
(19:20) Disadvantages (Singleton)
(22:51) Singleton in Abstract Factory

Helpful Resources:

Connect With Me Here:
Рекомендации по теме
Комментарии
Автор

Been watching you for a long time. Dude you deserve more❤

xAdiyat
Автор

Thank you so much for this amazing teaching and presentation, Easy to Understand the concept <3

johnveslyalanroy
Автор

Thank you so much man! These videos are the best.

frozendeadbush
Автор

Are you the best teller in the world??? Thank you for this content, <3

yusufnadaroglu
Автор

Well explained. Specially factory way is much confusing in dart. but you explained very well.

ajaykotiyal
Автор

Yeah I am eagerly waiting for the new video of this series

sumitmishra
Автор

just watched your video, and enjoyed your full explanation about Singeltone, congrats you got my SUBSCRIPTION. :)

code_with_amir
Автор

Bro your content is something worth watching❤. Keep up the good work.

naveedkaimkhami
Автор

thanks great video I love all videos from design patterns. 🤩😍

fatima-cfbj
Автор

Very good informative design patterns series really i like it and hope to make a another series about unit test in flutter

mostafabdelkader
Автор

Let's say I am fetching data from rest api, and then displaying them into my UI as ListView.builder. The fetch metod i put inside initState, and everytime i changing screen and go back it fetching it again and duplcating the list. Is there any way to fix that issue? I tried use FutureBuilder but it also fetching data everytime i change to another screen. Is Singleton pattern a solution in this case?

szyszak
Автор

Thank You so much, have literally being waiting for your update, please do more on this.


Thanks 🙏

nosakhareendurance
Автор

Which extension are you
Giving this cool text defination of instances???

thelandofdevil
Автор

Rivaan, What are your thoughts on chatgpt? I will be glad if you answer

ibrahimweaxy
Автор

Bro twitter tutorial how many days to take bro 6 months back prosessing prosessing bola what is this bro im waiting exact time telmi bro

MPRGyanStudio
visit shbcf.ru