onDetach property
EventStream<OnDetachEvent>
get
onDetach
Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is being invoked for the attached tab.
Implementation
EventStream<OnDetachEvent> get onDetach =>
$js.chrome.debugger.onDetach.asStream(($c) => (
$js.Debuggee source,
$js.DetachReason reason,
) {
return $c(OnDetachEvent(
source: Debuggee.fromJS(source),
reason: DetachReason.fromJS(reason),
));
}.toJS);