setup static method

Future<void> setup({
  1. required String apiKey,
  2. required String appId,
})

This must be done before using any other methods of this plugin. You can use this in main.dart before launch runApp(...)

Implementation

static Future<void> setup(
    {required String apiKey, required String appId}) async {
  return _channel
      .invokeMethod<void>('setup', {'api_key': apiKey, 'app_id': appId});
}