init static method

void init(
  1. String lumenApiKey, [
  2. bool debug = true
])

Implementation

static void init(String lumenApiKey, [bool debug = true]) {
  if (lumenApiKey == "") {
    throw Exception("API Key is required");
  }

  apiKey = lumenApiKey;
  showDebugMessages = debug;
}