Flutter Design Patterns: 10 — Factory Method
An overview of the Factory Method design pattern and its implementation in Dart and Flutter
Previously in the series, I have analysed a design pattern that is commonly used in our day-to-day programming, sometimes even without considering it — Iterator. In this article, I would like to analyse and implement one of the creational design patterns — Factory Method.
Update 2022–09–15: I moved this blog to my personal website. For a better reading experience, up to date articles, interactive code examples and some extra content FOR FREE, check kazlauskas.dev.
Table of Contents
- What is the Factory Method design pattern?
- Analysis
- Implementation
- Other articles in this series
- Your contribution
What is the Factory Method design pattern?
Factory Method, also known as Virtual Constructor, belongs to the category of creational design patterns. The intention of this design pattern is…