Flutter Design Patterns: 22 — Mediator

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

Mangirdas Kazlauskas
Flutter Community

--

Previously in the series, I analysed a behavioural design pattern that separates algorithms from the objects they operate on — Visitor. This time I would like to represent one another behavioural design pattern that lets you reduce dependencies between a set of interacting objects by decoupling the interaction logic from the objects and moving it to a dedicated controller — it is the Mediator.

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

What is the Mediator design pattern?

The importance of a mediator (source)

--

--

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