initializeSDK 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
Future<void> initializeSDK() async {
if(Platform.isAndroid)
{
try {
final String message = await methodChannel.invokeMethod('InitializeSdk');
print(message);
} on PlatformException catch (e) {
print("Failed to initialize SDK: '${e.message}'.");
}
}
else if(Platform.isIOS){
}
}