data_builder_test library
Barrel imported by craft_runner (data_builder_test:DataBuilderCraftBuilder).
It exposes the build-time builder only — the annotations live in
package:data_builder_test/annotations.dart so test sources can use them
without pulling in the analyzer.
Classes
- DataBuilderCraftBuilder
- DataBuilderPlugin
-
For every
@dataBuilder-annotated class undertest/, emits apartnext to its source (<file>.dart→<file>.data_builder.dart) holding a<Name>Builder extends Buildable: an immutable fluent builder whose only public surface is the const default constructor, awithX(...)per field, any declared preset methods, andbuild(). All storage is private.
Exceptions / Errors
- DataBuilderError
- Thrown for a schema the generator can't emit valid code for. craft_runner catches it per file and prints it with the source path.