startLivenessDetection method
Implementation
Future<LivenessDetectionResult> startLivenessDetection() async {
try {
var livenessResultRawData =
await _methodChannel.invokeMethod("startLivenessDetection");
LivenessDetectionResult livenessDetectionResult =
LivenessDetectionResult.fromJson(jsonDecode(livenessResultRawData));
return livenessDetectionResult;
} catch (e) {
rethrow;
}
}