initialize method

  1. @override
void initialize(
  1. String clientKey,
  2. IDWiseSDKTheme theme, {
  3. required dynamic onError(
    1. String error
    ),
})
override

Implementation

@override
void initialize(String clientKey, IDWiseSDKTheme theme,
    {required onError}) async {
  print('initializing SDK with clientKey: $clientKey');
  _onInitializeErrorCallback = onError;

  methodChannel.invokeMethod(
      'initialize', {"clientKey": clientKey, "theme": theme.name});
}