initialize method

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

Implementation

@override
void initialize(String clientKey, IDWiseTheme theme,
    {required onSuccess, required onError}) async {
  _onInitializeErrorCallback = onError;
  _onInitializeSuccessCallback = onSuccess;
  methodChannel.invokeMethod(
      'initialize', {"clientKey": clientKey, "theme": theme.name});
}