allAssets method

List<AssetId> allAssets({
  1. String? rootDir,
})

Implementation

List<AssetId> allAssets({String? rootDir}) {
  if (_expired) {
    throw StateError(
        'Cannot use a FinalizedAssetsView after it has expired!');
  }
  return _assetGraph.allNodes
      .map((node) {
        if (_shouldSkipNode(
            node, rootDir, _packageGraph, _optionalOutputTracker)) {
          return null;
        }
        return node.id;
      })
      .whereType<AssetId>()
      .toList();
}