getInstanceId method
Retrieve the instanceId paired with object.
Returns null if this instance is not paired.
Implementation
String? getInstanceId(Object instance) {
if (containsInstance(instance)) return _instanceIds[instance] as String?;
return null;
}