Filters assets by their type (JS or CSS).
The type parameter specifies which type of assets to return.
type
List<Asset> getByType(AssetType type) { return includes.where((asset) => asset.type == type).toList(); }