init static method

void init(
  1. String apiKey,
  2. String userId, {
  3. String endpoint = '',
})

Implementation

static void init(String apiKey, String userId, {String endpoint = ''}) {
  try {
    if (endpoint.isNotEmpty) {
      PlotlineWeb.init(apiKey, userId, endpoint: endpoint);
    } else {
      PlotlineWeb.init(apiKey, userId);
    }
  } catch (e) {
    debugPrint("Error in init: $e");
  }
}