init static method

Future<void> init({
  1. required String token,
  2. required List<InvocationEvent> invocationEvents,
  3. LogLevel debugLogsLevel = LogLevel.error,
})

Starts the SDK. This is the main SDK method that does all the magic. This is the only method that SHOULD be called. The token that identifies the app, you can find it on your dashboard. The invocationEvents are the events that invoke the SDK's UI. The debugLogsLevel used to debug Instabug's SDK.

Implementation

static Future<void> init({
  required String token,
  required List<InvocationEvent> invocationEvents,
  LogLevel debugLogsLevel = LogLevel.error,
}) async {
  $setup();
  return _host.init(
    token,
    invocationEvents.mapToString(),
    debugLogsLevel.toString(),
  );
}