StepBuildRecipe class final

Composable build recipe that executes a sequence of steps.

When a BuildCache is provided, each step is checked against the cache before execution. On cache hit, the step is skipped. On cache miss, the step is executed and its output recorded.

Implemented types

Constructors

StepBuildRecipe({required List<NativeBuildStep> steps, Map<String, List<String>> needsById = const {}, BuildCache? cache})
const
StepBuildRecipe.fromJson(Map<String, dynamic> json)
factory

Properties

cache BuildCache?
Optional build cache for step-level caching.
final
hashCode int
The hash code for this object.
no setterinherited
needsById Map<String, List<String>>
Step dependencies keyed by step id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
steps List<NativeBuildStep>
The ordered list of build steps to execute.
final

Methods

execute(NativeBuildContext context, ResolvedSource source) Future<NativeBuildResult>
Execute the build recipe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize this recipe to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited