byCategory static method

List<BrickInfo> byCategory(
  1. String category
)

Returns all bricks belonging to category.

Implementation

static List<BrickInfo> byCategory(String category) {
  return components.values
      .where((b) => b.category == category)
      .toList(growable: false);
}