onDetached property

Stream<String> get onDetached

Fired when remote debugging connection is about to be terminated. Contains detach reason.

Implementation

Stream<String> get onDetached => _client.onEvent
    .where((event) => event.name == 'Inspector.detached')
    .map((event) => event.parameters['reason'] as String);