onAccepted property

Stream<AcceptedEvent> get onAccepted

Informs that port was successfully bound and got a specified connection id.

Implementation

Stream<AcceptedEvent> get onAccepted => _client.onEvent
    .where((event) => event.name == 'Tethering.accepted')
    .map((event) => AcceptedEvent.fromJson(event.parameters));