An open API service indexing awesome lists of open source software.

https://github.com/mohanedzekry/creational-design-patterns

This is a Dart implementation of the Creational design patterns.
https://github.com/mohanedzekry/creational-design-patterns

abstract bridge-pattern builder-pattern creational-design-patterns dart design-patterns factory problem-solving singleton

Last synced: 6 months ago
JSON representation

This is a Dart implementation of the Creational design patterns.

Awesome Lists containing this project

README

          

# 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:

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

## Table of Contents
- [Singleton](#singleton)
- [Factory](#factory)

## 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.