BuilderEntry.forLibrary constructor
Creates a BuilderEntry with a library builder.
A library builder generates code into a separate library file, rather than a part file.
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.
outputExtensions
The file extensions this builder will generate.
Implementation
factory BuilderEntry.forLibrary(
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,
required Set<String> outputExtensions,
}) = BuilderEntryImpl.forLibrary;