BuilderEntryImpl constructor

BuilderEntryImpl(
  1. String key,
  2. BuilderFactory builder, {
  3. bool generateToCache = false,
  4. Set<String> generateFor = const <String>{},
  5. Set<String> runsBefore = const <String>{},
  6. Map<Type, String> registeredTypes = const <Type, String>{},
  7. Set<String> applies = const <String>{},
  8. Map<String, dynamic> options = const <String, dynamic>{},
})

Creates a BuilderEntryImpl with a standard builder.

key A unique identifier for this builder. builder A factory function that creates the builder. 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. registeredTypes Custom type annotations to register with the resolver. applies Builder keys that this builder applies to. options Configuration options for the builder.

Implementation

BuilderEntryImpl(
  this.key,
  BuilderFactory builder, {
  this.generateToCache = false,
  this.generateFor = const <String>{},
  Set<String> runsBefore = const <String>{},
  this.registeredTypes = const <Type, String>{},
  this.applies = const <String>{},
  Map<String, dynamic> options = const <String, dynamic>{},
}) : // must run before a builder to be able to apply it
     runsBefore = <String>{...runsBefore, ...applies},
     builder = builder(BuilderOptions(options));