This is a Dart implementation of the Creational design patterns.
Ensure you have Dart SDK installed on your system. Then, clone this repository:
git clone https://github.com/MohanedZekry/creational-design-patterns.git
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 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.
If you would like to contribute to this project, feel free to fork the repository and submit a pull request with your changes.
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.