builtvalue
Built_value is a Dart library that provides immutable value types through a code-generated builder pattern. It emphasizes strong typing, value equality, and safe serialization for data models used in Flutter and Dart apps. The library also offers immutable collections via built_collection, enabling deep immutability for lists, maps, and sets.
Usage centers on declaring an abstract class that implements Built<MyClass, MyClassBuilder>, listing fields as getters, and
Creating and updating instances uses a builder. For example, you construct with MyClass((b)=> b..name='Alice'..age=30). To modify,
Serialization is supported through Serializers and generated serializers. You typically expose a serializer for your type
Built_value integrates with built_collection for immutable collections and can improve correctness in large state-heavy Dart apps,