initializeSdk method
Initializes the SDK with the provided credentials.
baseUrl The base URL for the Lune SDK API endpoints.
accessToken The access token required for SDK authentication.
Throws an exception if initialization fails.
Implementation
@override
Future<void> initializeSdk(String baseUrl, String accessToken) async {
try {
await methodChannel.invokeMethod(
'initializeSdk', {'baseUrl': baseUrl, 'accessToken': accessToken});
} on PlatformException catch (e) {
log("Error initializing SDK: ${e.message}");
rethrow; // Re-throw the exception to be handled in Flutter.
}
}