MultiAssetReader class Null safety

A MultiPackageAssetReader that delegates to multiple other asset readers.

MultiAssetReader attempts to check every provided MultiPackageAssetReader to see if they are capable of reading an AssetId, otherwise checks the next reader.

Inheritance
Implemented types

Constructors

MultiAssetReader(List<MultiPackageAssetReader> _readers)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

canRead(AssetId id) Future<bool>
Indicates whether asset at id is readable.
override
digest(AssetId id) Future<Digest>
Returns a Digest representing a hash of the contents of id. [...]
inherited
findAssets(Glob glob, {String? package}) Stream<AssetId>
Returns all readable assets matching glob under package. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
readAsBytes(AssetId id) Future<List<int>>
Returns a Future that completes with the bytes of a binary asset. [...]
override
readAsString(AssetId id, {Encoding encoding = utf8}) Future<String>
Returns a Future that completes with the contents of a text asset. [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

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