start method
Implementation
Stream<FaceLivenessEvent> start() {
Map<String, dynamic> params = {};
params['mobileToken'] = mobileToken;
params['personId'] = personId;
params['stage'] = stage?.stringValue;
params['filter'] = filter?.stringValue;
params['enableScreenshot'] = enableScreenshot;
params['enableLoadingScreen'] = enableLoadingScreen;
params['imageUrlExpirationTime'] = imageUrlExpirationTime?.stringValue;
params['reverseProxySettings'] = reverseProxySettings?.asMap();
_livenessMethodChannel.invokeMethod('start', params);
return _livenessListenerEventChannel
.receiveBroadcastStream()
.map((result) => FaceLivenessEvent.fromMap(result));
}