initialize method

Future<void> initialize({
  1. String? apiKey,
  2. String? environment,
  3. bool autoInitWithAdmin = true,
  4. bool debug = false,
})

Initialize with simple parameters for backward compatibility

Implementation

Future<void> initialize({
  String? apiKey,
  String? environment,
  bool autoInitWithAdmin = true,
  bool debug = false,
}) async {
  final config = OnairosConfig(
    apiKey: apiKey,
    environment: environment,
    autoInitWithAdmin: autoInitWithAdmin,
    debug: debug,
  );

  await initializeApiKey(config);
}