clearType static method
Clears all subsystems of a given type and disposes its type context.
Implementation
static Future<void> clearType(String typeId) async {
final registry = findRegistryForTypeId(typeId);
if (registry != null) {
await registry._clearInternal();
_registriesByTypeDesc.remove(registry.typeDesc);
}
}