PartBuilder constructor
Wrap generators as a Builder that generates part of files.
generatedExtension indicates what files will be created for each
.dart input. The generatedExtension should not be .g.dart. If you
wish to produce .g.dart files please use SharedPartBuilder.
If any generator in generators will create additional outputs through
the BuildStep they should be indicated in additionalOutputExtensions.
formatOutput is called to format the generated code. Defaults to
DartFormatter.format.
header is used to specify the content at the top of each generated file.
If null, the content of defaultFileHeader is used.
If header is an empty String no header is added.
allowSyntaxErrors indicates whether to allow syntax errors in input
libraries.
If available, the build_extensions option will be extracted from
options to allow output files to be generated into a different directory
Implementation
PartBuilder(
super.generators,
String generatedExtension, {
super.formatOutput,
super.additionalOutputExtensions,
super.header,
super.allowSyntaxErrors,
super.options,
}) : super(
generatedExtension: generatedExtension,
);