cancelCapture method

Future<bool> cancelCapture(
  1. {required dynamic onResult(
      )}
    )

    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) {
        print("Digifed: call initialize first!");
        return Future.value(false);
      }
      return CancelCaptureMethod().invoke(onResult: onResult);
    }