Loading topic
freezed is required yet.2 min readfinal fields, and null safety. This chapter uses those features to explain how objects compare in Dart and why immutable data classes need generated equality.1 min readfreezed uses Dart code generation, so the source file and the generated file work together.2 min readfreezed_annotation, freezed, and build_runner configured.2 min readfreezed setup with build_runner. The examples use a generated file, so run the generator after changing the class declaration.2 min readfreezed with build_runner. This chapter shows how to change an immutable object without modifying the original object.2 min readbuild_runner. The goal is to choose the right field declaration for values that may be omitted, may be null, or must satisfy a rule.2 min readfreezed generates a second Dart file from your class declaration.2 min readfreezed works with json_serializable to convert immutable objects to and from JSON.2 min readfreezed unions. It also assumes Dart 3, including sealed classes, pattern matching, and switch expressions.2 min readfreezed code generation.1 min readfreezed classes. It also assumes that code generation is configured with build_runner.2 min readflutter test usage. It also assumes that Person is a freezed class and that its generated files are current.2 min readfreezed, freezed_annotation, json_serializable, and build_runner.2 min read