getById static method

MessageType? getById(
  1. int id
)

Get MessageType by its ASN.1 ID.

Will return null if not found.

Implementation

static MessageType? getById(int id) {
  for (MessageType mt in values) {
    if (mt.id == id) {
      return mt;
    }
  }
  return null;
}