removeInstance method

void removeInstance(
  1. String instanceId
)

Remove the instance with instancedId as key.

Implementation

void removeInstance(String instanceId) {
  final Object? instance = getInstance(instanceId);
  if (instance != null) _instanceIds[instance] = null;

  _strongReferences.remove(instanceId);
  _temporaryStrongReferences.remove(instanceId);
  _weakReferences.remove(instanceId);
  _weakReferenceCallbacks.remove(instanceId);
}