cancelCapture method
Cancelling the capture request (usually will be used if capture timeout passed and you want to allow the user to cancel the capturing request)
onResult
(required) A callback method, called when the cancel capture is invoked
Implementation
Future<bool> cancelCapture({required Function() onResult}) {
if (!_isInitializeCalled) {
debugPrint("Digifed: call initialize first!");
return Future.value(false);
}
return CancelCaptureMethod().invoke(onResult: onResult);
}