verifyMatch method Null safety
Implementation
Future<MatchResult> verifyMatch(Template template1, Template template2) async {
ReceivePort receivePort = ReceivePort();
Map<String, double> result = Map<String, double>();
_sendPort.send({
"event": _RecognizerEvents.VERIFY_MATCH,
"sendPort": receivePort.sendPort,
"template1": template1._impl.address,
"template2": template2._impl.address
});
result = await receivePort.first;
return MatchResult(result["distance"]!, result["fa_r"]!, result["fr_r"]!, result["score"]!);
}