disposeInstancePair method
Dispose the instance pair containing instance
.
Sends a message to another TypeChannelMessenger with messageDispatcher.
Implementation
Future<void> disposeInstancePair(Object instance) async {
if (!isPaired(instance)) return;
final PairedInstance pairedInstance = getPairedPairedInstance(instance)!;
instanceManager.removeInstance(pairedInstance.instanceId);
return messageDispatcher.sendDisposeInstancePair(pairedInstance);
}