onReady static method

dynamic onReady(
  1. dynamic callback()
)

Provide a function to be called once SDK is ready. Automatically calls the function if SDK is already ready.

Implementation

static onReady(Function() callback) {
  _eventsHandler.onReadyCallbacks.add(callback);
  _channel.invokeMethod('onReady');
}