CombiningBuilderEntry class
A BuilderEntry that combines multiple builders into a single logical unit.
This class is primarily used for combining multiple SharedPartBuilders that generate code to the same part file. It allows them to be coordinated and run as a single builder entry, improving build efficiency.
- Implemented types
Constructors
-
CombiningBuilderEntry.new({required List<
Builder> builders, required String key, required Set<String> generateFor, required Set<String> runsBefore, Set<String> applies = const <String>{}, Map<Type, String> annotationsTypeMap = const <Type, String>{}}) - Creates a CombiningBuilderEntry that combines multiple builders.
Properties
-
annotationsTypeMap
→ Map<
Type, String> -
A map from annotation types to their string representations
final
-
applies
→ Set<
String> -
A set of builder keys that this builder applies to.
final
-
builders
→ List<
Builder> -
The list of builders to combine
final
-
generateFor
→ Set<
String> -
A set of glob patterns that determine which files this builder should process.
final
- generateToCache → bool
-
Whether outputs should be generated to a cache directory.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
A unique identifier for this builder.
final
-
outputExtensions
→ Set<
String> -
The file extensions this builder will generate.
latefinal
-
runsBefore
→ Set<
String> -
A set of builder keys that this builder should run before.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
ResolverImpl resolver, Asset asset) → FutureOr< Set< Uri> > -
Builds the given asset using this builder.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPrepare(
ResolverImpl resolver) → void -
Prepares the resolver for this builder.
override
-
shouldGenerateFor(
BuildCandidate candidate) → bool -
Determines whether this builder should generate output for the given candidate.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromEntries(
List< BuilderEntryImpl> entries) → CombiningBuilderEntry - Creates a CombiningBuilderEntry from a list of BuilderEntryImpls.