BuilderEntryImpl constructor
BuilderEntryImpl(
- String key,
- BuilderFactory builder, {
- bool generateToCache = false,
- Set<
String> generateFor = const <String>{}, - Set<
String> runsBefore = const <String>{}, - Map<
Type, String> registeredTypes = const <Type, String>{}, - Set<
String> applies = const <String>{}, - 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));