getType method

PortableType? getType(
  1. int id
)

Implementation

PortableType? getType(int id) {
  for (final type in types) {
    if (type.id == id) {
      return type;
    }
  }
  return null;
}