BuildStepImpl class
Default implementation of BuildStep that writes files to the file system.
This implementation handles the logic of resolving output paths, validating extensions, and writing to the correct location based on whether outputs should be generated to cache or not.
- Implemented types
- Implementers
Constructors
Properties
-
allowedExtensions
→ Set<
String> -
The set of allowed file extensions for output assets.
final
- asset → Asset
-
The primary input for this build step.
final
- generateToCache → bool
-
Whether to write outputs to the build cache instead of alongside inputs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
outputs
→ Set<
Uri> -
The set of output URIs that have been written by this build step.
no setteroverride
- resolver → Resolver
-
The Resolver for this build step.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findAssets(
PathMatcher matcher, {String? subDir}) → List< Asset> -
Finds assets within the root package that match the
matcher
pattern.override -
hasValidPartDirectiveFor(
String extension) → bool -
Returns true if the input library has a part directive for the given extension.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeAsBytes(
List< int> bytes, {required String extension}) → FutureOr<void> -
Writes
bytes
to a binary file located atid
.override -
writeAsString(
String contents, {required String extension, Encoding encoding = utf8}) → FutureOr< void> -
Writes
contents
to a text file with the specifiedextension
using the givenencoding
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited