Skip to content

This is a Dart implementation of the Creational design patterns.

Notifications You must be signed in to change notification settings

MohanedZekry/creational-design-patterns

Repository files navigation

Creational Design Pattern using Dart

This is a Dart implementation of the Creational design patterns.

Installation

Ensure you have Dart SDK installed on your system. Then, clone this repository:

git clone https://github.com/MohanedZekry/creational-design-patterns.git

Table of Contents

Singleton

The Singleton pattern ensures that a class has only one instance and provides a global access point to that instance. In this project, we'll create a Singleton class called Singleton

Factory

Factory pattern: This pattern allows you to create objects without exposing the creation logic to the client. It is useful when you want to create different types of objects based on some criteria it provides an interface for creating objects, but it allows subclasses to alter the type of objects that will be created.

Contributing

If you would like to contribute to this project, feel free to fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Replace MohanedZekry with your GitHub username if you want to publish this project on your GitHub repository. The code example above demonstrates a simple implementation of the Creational design patterns.