activate method
Activates the sdk with the given token.
token The token string used for activation.
extractData A boolean indicating whether to use extract data. True by default.
Returns Void on success. Throws An error of type IDCheckioError if the activation fails.
Implementation
@override
Future<void> activate({required String token, bool extractData = true}) async {
try {
await methodChannel.invokeMethod(MethodName.activate.name, <String, dynamic>{
ArgumentKey.idToken.name: token,
ArgumentKey.extractData.name: extractData
});
} on PlatformException catch (e) {
throw PlatformException(code: initFailedCode, message: e.message);
}
}