BuilderEntry.forSharedPart constructor
BuilderEntry.forSharedPart(
Creates a BuilderEntry with a shared part builder.
A shared part builder generates code into a single shared part file for a source file, with multiple generators contributing to the same output.
key
A unique identifier for this builder.
generator
A factory function that creates the generator.
generateToCache
Whether outputs should be written to the build cache.
generateFor
Glob patterns that determine which files to process.
runsBefore
Builder keys that this builder should run before.
options
Configuration options for the builder.
annotationsTypeMap
Custom type annotations to register with the resolver.
allowSyntaxErrors
Whether to generate code even if the source file has syntax errors.
applies
Builder keys that this builder applies to.
Implementation
factory BuilderEntry.forSharedPart(
String key,
GeneratorFactory generator, {
bool generateToCache,
Set<String> generateFor,
Set<String> runsBefore,
Map<String, dynamic> options,
Map<Type, String> registeredTypes,
bool allowSyntaxErrors,
Set<String> applies,
}) = BuilderEntryImpl.forSharedPart;