BuilderDefinitionEntry class
Defines a builder configuration for code generation.
This class contains all the information needed to instantiate and configure a builder during the build process, including its type, inputs, outputs, and various configuration options.
Constructors
-
BuilderDefinitionEntry.new({required String key, required String import, required BuilderType builderType, required String generatorName, required bool expectsOptions, Set<
String> ? applies, Map<String, dynamic> ? options, bool? generateToCache, Set<String> ? generateFor, Set<String> ? runsBefore, List<RuntimeTypeRegisterEntry> ? registeredTypes, bool? allowSyntaxErrors, Set<String> ? outputExtensions}) - Creates a new builder definition entry with the specified parameters.
Properties
- allowSyntaxErrors → bool?
-
Whether to continue processing even when syntax errors are present.
final
-
applies
→ Set<
String> ? -
Builder keys that this builder applies to (for post-process builders).
final
- builderType → BuilderType
-
The type of builder (shared, library, or custom).
final
- expectsOptions → bool
-
Whether this builder expects options to be provided.
final
-
generateFor
→ Set<
String> ? -
Glob patterns specifying which files this builder should process.
final
- generateToCache → bool?
-
Whether the output should be cached.
final
- generatorName → String
-
Name of the generator class to instantiate.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- import → String
-
Import path for the builder class.
final
- key → String
-
Unique identifier for this builder.
final
-
options
→ Map<
String, dynamic> ? -
Additional configuration options for this builder.
final
-
outputExtensions
→ Set<
String> ? -
File extensions this builder will produce.
final
-
registeredTypes
→ List<
RuntimeTypeRegisterEntry> ? -
Type annotations this builder processes.
final
-
runsBefore
→ Set<
String> ? -
Builder keys that should run before this builder.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
merge(
BuilderOverride override) → BuilderDefinitionEntry - Merges this builder definition with an override.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override