initSdk static method

Future<void> initSdk(
  1. String authToken,
  2. String apiUrl,
  3. String notificationWebHookUrl,
  4. String publishKey,
  5. String notificationToken,
  6. bool isSandbox,
)

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());
  }
}