onceReady method
void
onceReady({
- required HostReadyHandler handler,
inherited
Implementation
void onceReady({required handler}) {
// ignore: cancel_subscriptions
var subscription = onReady(handler: handler);
subscription.onData((data) {
if (data.containsKey(HostEventType.ready)) offReady(handler: handler);
});
}