Browse the folders for code samples and documentation. Each section contains runnable examples and explanations.
This project uses custom test directories. To run tests, use:
# Run all unit tests
dart test tests/unit
# Run all integration tests
dart test tests/integration
# Run all tests
dart test tests/unit tests/integrationYou can also run individual pattern/example files with:
dart run patterns/strategy.dart
dart run examples/async/future_example.darthttps://github.com/itsmelaxman/advance-dart
A curated collection of advanced Dart language features, design patterns, performance tips, and best practices. This repository is designed for Dart developers who want to deepen their understanding and master advanced concepts in Dart.
- Advanced language features (mixins, extensions, generics, async, etc.)
- Common design patterns implemented in Dart
- Performance optimization tips and benchmarks
- Package development examples
- Testing and debugging samples
- FFI and interoperability guides
- Well-documented code and tutorials
Browse the folders for code samples and documentation. Each section contains runnable examples and explanations.
This repository includes implementations and examples of the most widely used and recommended patterns in Dart and software engineering:
- Singleton – Ensure a class has only one instance and provide a global point of access.
- Factory – Create objects without specifying the exact class of object that will be created.
- Observer – Define a one-to-many dependency so that when one object changes state, all its dependents are notified.
- Strategy – Define a family of algorithms, encapsulate each one, and make them interchangeable.
- Decorator – Attach additional responsibilities to an object dynamically.
- Command – Encapsulate a request as an object, thereby letting you parameterize clients with different requests.
- Adapter – Allow the interface of an existing class to be used as another interface.
You’ll find code samples and explanations for these patterns in the patterns/ folder.
- See
docs/advanced_topics.mdfor in-depth explanations and advanced Dart features. - Explore the
examples/folder for practical code samples. - Performance tips and benchmarks are in the
performance/folder.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
See LICENSE for details.