initialize method
Implementation
Future<dynamic> initialize(String appId) async {
try {
// Initialize the AEP Core SDK
await MobileCore.setLogLevel(LogLevel.trace);
await MobileCore.initializeWithAppId(appId: appId);
return true;
} catch (e) {
debugPrint('Error initializing Adobe Analytics: $e');
throw StateError('Error initializing Adobe Analytics: $e');
}
}