getByType method

List<Asset> getByType(
  1. AssetType type
)

Filters assets by their type (JS or CSS).

The type parameter specifies which type of assets to return.

Implementation

List<Asset> getByType(AssetType type) {
  return includes.where((asset) => asset.type == type).toList();
}