A great video explaining how Freezed supports a helpful use case called Unions Video.
Other native languages have features that support a similar use case natively. Swift w/ powerful Enums + associated values Android w/ sealed classes
Unions = multiple classes grouped together
Super useful because it helps the developer:
- Avoid having to write exhaustive if/switch statements
- Forget supporting a specific case
Below are some example use cases:
Marketing Car: DartPad
Result Message (from Video)