Flutter Design Patterns: 2 — Adapter
An overview of Adapter design pattern and its implementation in Dart and Flutter
In the last article, I have analysed the first design pattern in the series — Singleton, provided some general thoughts about its structure, applicability, pros and cons, implemented it in several different ways. This time, I would like to analyse and implement a design pattern that belongs to the category of structural design patterns — Adapter.
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 Adapter design pattern?
- Analysis
- Implementation
- Other articles in this series
- Your Contribution
What is the Adapter design pattern?
Adapter is a structural design pattern, also known as wrapper. It is one of the most common and most useful design patterns…