byId static method

The row with id, or null when no row has it.

Implementation

static DesignInventoryRow? byId(String id) {
  for (final row in all) {
    if (row.id == id) return row;
  }
  return null;
}