uninstall method
void
uninstall()
Removes the fake (done for you when the test ends).
Safe at any point, also after or before the app cancels its Clikgate.onDeepLink
subscriptions: those get their done event and never see a later test's links.
Implementation
void uninstall() {
if (!_installed) return;
_installed = false;
// First, while the channel mocks are still in place: disposing the deep link hub cancels its
// `com.clikgate/deep_links` subscription, and that `cancel` must reach this fake's handler.
resetDeepLinkHubForTesting();
_messenger.setMockMethodCallHandler(_sdk, null);
_messenger.setMockMethodCallHandler(_engage, null);
_messenger.setMockStreamHandler(_deepLinks, null);
engageHttpClientOverride = null;
}