initializeSDK static method
Initializes the Mergn SDK.
This method invokes the native method InitializeSdk
and prints the returned message.
Throws a PlatformException if the initialization fails.
Implementation
static Future<void> initializeSDK() async {
const platform = MethodChannel('mergnKotlinSDK');
try {
final String message = await platform.invokeMethod('InitializeSdk');
print(message);
} on PlatformException catch (e) {
print("Failed to initialize SDK: '${e.message}'.");
}
}