Awesome Open Source
Awesome Open Source

Design Patterns in Dart

Welcome! The intent of this repo is to provide

  1. Examples for each of the 23 Gang of Four design patterns
  2. An introduction to the Dart programming language

Please see Getting Started for more information on how to run the examples.

Table of Contents

Behavioral Patterns


Structural Patterns

Getting Started

Each example has its own directory, inside which is a short readme and a sole Dart file. To run the example, make sure you have Dart installed and then just do

dart <example directory>/<example name>.dart

Take State, for example:

> dart state/state.dart

The light switch is off.
Toggling the light switch...
  Touching the Stateful...
  Handler of StatusOff is being called!
The light switch is on.

If you have any questions or see any issues, please feel free to file an issue.



Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Dart (52,664
Design Pattern (3,091
Contribution (2,028
Dartlang (772
Dart2 (209
Gof (66
Gof Patterns (41
Gang Of Four (33
Patterns Design (24