start method
Starts the verification flow with the provided parameters
The sdkParams can be either StudioParameters for workflow-based
verification or ClassicParameters for step-based verification.
Example with Studio (workflow):
idv.start(StudioParameters(sdkToken: 'your-token'));
Example with Classic (steps):
idv.start(ClassicParameters(
sdkToken: 'your-token',
steps: [
Welcome(),
Document(),
FacePhoto(),
],
));
Implementation
void start(SdkParameters sdkParams) {
final jsonString = jsonEncode(sdkParams.toJson());
_methodChannel.invokeMethod(_MethodNames.start, jsonString).catchError((
error,
stack,
) {
_log('start failed: $error\n$stack');
});
}