eventsReady method

Future<void> eventsReady()

Completes once the VM service is sending this app's nylo events to the events streams.

Listening to events subscribes without waiting, so await this before asking the app for something whose first events mustn't be missed.

Implementation

Future<void> eventsReady() =>
    (_nyloListening ?? Future<void>.value()).catchError((Object _) {});