initSdk static method
Implementation
static Future<void> initSdk(
String authToken,
String apiUrl,
String notificationWebHookUrl,
String publishKey,
String notificationToken,
bool isSandbox,
) async {
try {
await platform.invokeMethod('initSdk', <String, dynamic>{
'authToken': authToken,
'apiUrl': apiUrl,
'notificationWebHook': notificationWebHookUrl,
'publishKey': publishKey,
'notificationToken': notificationToken,
'isSandbox': isSandbox,
});
} on PlatformException catch (e) {
showToast(e.message.toString());
}
}