BuilderEntry.forSharedPart constructor

BuilderEntry.forSharedPart(
  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,
})

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;