detach static method
void
detach()
Implementation
static void detach() {
_attachGeneration++; // 在途重试回调全部失效。
_isAttached = false;
hideBall();
final bridge = _bridge;
_bridge = null;
_navigatorKey = null;
if (bridge != null) {
// 先移出分发列表再关闭:此后 collector 不再向已关闭的桥接 add 条目。
logCollector.removeOutput(bridge);
unawaited(bridge.dispose());
}
}