findAssets method

  1. @override
Stream<AssetId> findAssets(
  1. Glob glob,
  2. {String? package}
)

Returns all readable assets matching glob under package.

NOTE: This is a combined view of all provided readers. As such it is possible that an AssetId will be iterated over more than once, unlike other implementations of AssetReader.

Implementation

@override
Stream<AssetId> findAssets(Glob glob, {String? package}) => StreamGroup.merge(
    _readers.map((reader) => reader.findAssets(glob, package: package)));