typeById method

PortableType typeById(
  1. int id
)

Implementation

PortableType typeById(int id) {
  return types.firstWhere((type) => type.id == id);
}