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.
- Host: GitHub
- URL: https://github.com/mohanedzekry/creational-design-patterns
- Owner: MohanedZekry
- Created: 2023-07-24T16:21:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T18:20:21.000Z (about 2 years ago)
- Last Synced: 2025-06-04T21:24:27.448Z (8 months ago)
- Topics: abstract, bridge-pattern, builder-pattern, creational-design-patterns, dart, design-patterns, factory, problem-solving, singleton
- Language: Dart
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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.