Dart Documentationchrome.debuggerOnDetachEvent

OnDetachEvent class

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.

class OnDetachEvent {
 /**
  * The debuggee that was detached.
  */
 final Debuggee source;

 /**
  * Connection termination reason.
  * enum of `target_closed`, `canceled_by_user`, `replaced_with_devtools`
  */
 final String reason;

 OnDetachEvent(this.source, this.reason);
}

Constructors

new OnDetachEvent(Debuggee source, String reason) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
OnDetachEvent(this.source, this.reason);

Properties

final String reason #

Connection termination reason. enum of target_closed, canceled_by_user, replaced_with_devtools

final String reason

final Debuggee source #

The debuggee that was detached.

final Debuggee source