clearType static method

Future<void> clearType(
  1. String typeId
)

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);
  }
}