create static method

Asynchronously creates an Alexa Client.

Returns a Future which is fulfilled with AlexaReadyPayload or rejected with an ErrorWithCode.

Takes an optional option where you can override the option defaults.

If a version isn't provided it will default to the latest API. This can only be called once per page.

Implementation

static Future<AlexaReadyPayload> create(CreateClientOptions option) {
  return promiseToFuture<AlexaReadyPayload>(_create(option));
}