FinalizedReader class

An AssetReader which ignores deleted files.

Constructors

FinalizedReader(AssetReader _delegate, AssetGraph _assetGraph, TargetGraph _targetGraph, List<BuildPhase> _buildPhases, String _rootPackage)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRead(AssetId id) Future<bool>
Indicates whether asset at id is readable.
digest(AssetId id) Future<Digest>
Returns a Digest representing a hash of the contents of id.
findAssets(Glob glob) Stream<AssetId>
Returns all readable assets matching glob under the current package.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAsBytes(AssetId id) Future<List<int>>
Returns a Future that completes with the bytes of a binary asset.
readAsString(AssetId id, {Encoding encoding = utf8}) Future<String>
Returns a Future that completes with the contents of a text asset.
reset(Set<String> buildDirs, Set<BuildFilter> buildFilters) → void
toString() String
A string representation of this object.
inherited
unreadableReason(AssetId id) Future<UnreadableReason?>
Returns a reason why id is not readable, or null if it is readable.

Operators

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