BuilderEntry.forLibrary constructor

BuilderEntry.forLibrary(
  1. String key,
  2. GeneratorFactory generator, {
  3. bool generateToCache,
  4. Set<String> generateFor,
  5. Set<String> runsBefore,
  6. Map<String, dynamic> options,
  7. Map<Type, String> registeredTypes,
  8. bool allowSyntaxErrors,
  9. Set<String> applies,
  10. required Set<String> outputExtensions,
})

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;