lookupSubtype method

ResourceRegistration<Resource> lookupSubtype(
  1. Subtype subtype
)

Retrieve a Subtype's registration information

Implementation

ResourceRegistration lookupSubtype(Subtype subtype) {
  if (!subtypes.containsKey(subtype)) {
    throw Exception('Subtype not registered in registry');
  }
  return subtypes[subtype]!;
}