syncModelBuilder function
Builder
syncModelBuilder(
- BuilderOptions options
Entry point for build_runner.
Registers the SyncModelGenerator as a SharedPartBuilder so that
generated code is written into .g.dart part files alongside the
source model files.
Configuration in build.yaml:
builders:
sync_model:
import: "package:dart_data_generator/builder.dart"
builder_factories: ["syncModelBuilder"]
...
Implementation
Builder syncModelBuilder(BuilderOptions options) =>
SharedPartBuilder([SyncModelGenerator()], 'sync_model');