This is the first episode of Design Patterns Series in Flutter, designed for beginners. In this episode, we are going to understand what Factory Method Pattern is. We will go through an overly complicated definition, understand it using analogy, take dart and flutter examples and then understand when and why to use this design pattern along with the disadvantages it brings.
There are 3 type of Factory Patterns:
1. Simple Factory (Not considered a Design Pattern)
2. Factory Method (This video)
3. Abstract Factory (Ep. 2)
Discord Server: discord.gg/Q8Rx8YWFVF
📌 Code - github.com/RivaanRanawat/flutter-design-patterns/t…
📕 Design Patterns Book - www.amazon.in/Design-Patterns-Object-Oriented-Addi…
Timestamps:
(00:00) Introduction
(00:19) What is Factory Method Pattern
(00:40) Factory Method Pattern Analogy
(02:15) Creational Design Pattern
(02:51) Dart Code Example (Factory Method Pattern)
(13:32) Advantages & Uses of Factory Method Pattern
(17:16) Flutter Example (Factory Method Pattern)
(23:24) Disadvantages of Factory Method Pattern
(24:01) Design Patterns related to Factory Method Pattern
(24:28) Conclusion
Connect With Me Here:
Twitter: twitter.com/RanawatRivaan
Linkedin: www.linkedin.com/in/rivaan-ranawat/
GitHub: github.com/rivaanranawat
Instagram: instagram.com/optimalcoding
Facebook: www.facebook.com/rivaan.ranawat/
Mail: namanrivaan@gmail.com
Medium: namanrivaan.medium.com/
#flutter #dart
コメント