-
This project use built_value, built_collection and built_test packages which add value types (imitable values) to Dart. Make sure you use these package for model definitions, object serialization/deserialization, and any other appropriate use cases.
Learn more about built_value and value types.
Why built_value ?
- Built value generates a huge amount of code for free
- Built values are value types(immutable values) and not reference types 1, 2, 3 . Consequently, it's faster.
- JSON object serialization and deserialization (generated for free)
- HashCode properties (generated for free)
- Objects equality (generated for free)
- toString methods (generated for free)
- Getter memoization (generated for free)
- EnumClass
- Dramatically improves testability
- Tooling - VSCode extension, IntelliJ plugin
- Has companion pub built_collection for collections
- And more
Last but not least, built_value widely used in products like Google AdWords.
Created
July 20, 2020 12:57
-
-
Save minikin/0e8d8e63c56317a5a496f715e2a5de61 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment