configure method

Future<void> configure({
  1. String? androidApiKey,
  2. String? iosApiKey,
  3. bool persistUser = true,
  4. String? releaseStage,
  5. String? projectPackageName,
})

Provision the client. This method must be called before any subsequent methods. It's recommended that this method is awaitd in void main() before runApp.

projectPackageName should reflect the name of the package where bugsnag_flutter is imported.

Implementation

Future<void> configure({
  String? androidApiKey,
  String? iosApiKey,
  bool persistUser = true,
  String? releaseStage,
  String? projectPackageName,
}) {
  instance.projectPackageName = projectPackageName;
  return _channel.invokeMethod('configure', {
    'androidApiKey': androidApiKey,
    'iosApiKey': iosApiKey,
    'persistUser': persistUser.toString(),
    'releaseStage': releaseStage,
  });
}