removeSubsystemByIds static method

Future<void> removeSubsystemByIds(
  1. String typeId,
  2. String classId
)

Unregisters and disposes a subsystem by its type and class IDs.

Implementation

static Future<void> removeSubsystemByIds(String typeId, String classId) async {
  final registry = findRegistryForTypeId(typeId);
  if (registry != null) {
    await registry.unregisterSingletonByClassId(classId);
  }
}