initWithToken static method

void initWithToken(
  1. String apiKey,
  2. ActivationMethod activationMethod
)

initializes bugbattle with apiKey and sets the activationMethod.

Implementation

static void initWithToken(String apiKey, ActivationMethod activationMethod) {
  String activationMethodValue = getActivationMethodValue(activationMethod);
  _channel.invokeMethod(
    'initWithToken',
    {'apiKey': apiKey, 'activationMethod': activationMethodValue},
  );
}