SaaSHub helps you find the best software and product alternatives Learn more →
Dart Code-Generator Projects
-
freezed
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
-
flutter_gen
The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
There is the `sealed` class modifier which allows for exhaustive matching on possible types: https://dart.dev/language/class-modifiers#sealed
There's also a package called freezed which offers similar utility (you might already be familiar with this seeing as you mentioned pattern matching): https://pub.dev/packages/freezed
I recall there being a reason unions aren't generally implemented, though I'm not sure where I read it. It was to do with union types being unnecessarily complex for the compiler and the code they tend to produce, at no real benefit to the programmer or the resulting program. Go's lack of unions is essentially based around the same reasoning.
Dart Code-Generator related posts
- Class Constructor Plugins- Are there any?
- Firestore partial doc updates and type safety
- Is 'Freezed' code generator worth the boilerplate?
- very_good_cli / flutter_bloc / freezed / go_router / supabase_flutter and what else?
- ELI5: BLoC compared to Provider/Riverpod?
- MVVM With Flutter
- TOP 5 Flutter Packages! That many apps should be used.
-
A note from our sponsor - SaaSHub
www.saashub.com | 23 Apr 2024
Index
Project | Stars | |
---|---|---|
1 | freezed | 1,805 |
2 | flutter_gen | 1,398 |
Sponsored