Flutter Design Patterns: 14 — Prototype

An overview of the Prototype design pattern and its implementation in Dart and Flutter

Mangirdas Kazlauskas
Flutter Community

--

Previously in the series, I analyzed one of the behavioural design patterns — Memento. This time I would like to represent a relatively simple design pattern compared to the other patterns in the series that belong to the category of creational design patterns — the Prototype.

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 Prototype design pattern?
  • Analysis
  • Implementation
  • Other articles in this series
  • Your contribution

What is the Prototype design pattern?

How cloning works (source)

The Prototype is a creational design pattern, which intention in the GoF book is described like this:

Specify the kinds of objects to…

--

--

Mangirdas Kazlauskas
Flutter Community

Google Developer Expert for Flutter & Dart | Read the blog for free on kazlauskas.dev | Let's stay in touch - https://twitter.com/mkobuolys