unregisterSingletonByClassId method
Unregisters and disposes a singleton by its classId.
Implementation
Future<void> unregisterSingletonByClassId(
String classId, {
bool preserveTypeContext = false,
}) async {
final singleton = findByClassId(classId);
if (singleton != null) {
await unregisterSingleton(singleton, preserveTypeContext: preserveTypeContext);
}
}