init method

dynamic init(
  1. String applicationId,
  2. String authorizationKey,
  3. String authorizationSecret, {
  4. Future<CubeSession> onSessionRestore()?,
})

Implementation

init(
    String applicationId, String authorizationKey, String authorizationSecret,
    {Future<CubeSession> Function()? onSessionRestore}) async {
  this.applicationId = applicationId;
  this.authorizationKey = authorizationKey;
  this.authorizationSecret = authorizationSecret;
  this.onSessionRestore = onSessionRestore;

  await _initDefaultParams();
}