FileAssetReader class

A class that reads file assets from the filesystem.

This class works with the PackageFileResolver to locate and read files from Dart packages, converting them into Asset instances for further processing.

Constructors

FileAssetReader.new(PackageFileResolver fileResolver)
Creates a new FileAssetReader with the given fileResolver.

Properties

fileResolver PackageFileResolver
The resolver used to convert between package paths and filesystem paths.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findRootAssets(PathMatcher matcher, {String? subDir}) List<Asset>
Finds assets in the root package that match the specified matcher pattern.
listAssetsFor(Set<String> packages) Map<String, List<Asset>>
Lists all assets in the specified packages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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