CloseScannerResponse constructor

CloseScannerResponse({
  1. required String scannerHandle,
  2. required OperationResult result,
})

Implementation

CloseScannerResponse({
  /// Same scanner handle passed to `closeScanner()`.
  required String scannerHandle,

  /// Backend result of closing the scanner.  Even if this value is not
  /// `OperationResult.SUCCESS`, the handle will be invalid and
  /// should not be used for any further operations.
  required OperationResult result,
}) : _wrapped = $js.CloseScannerResponse(
        scannerHandle: scannerHandle,
        result: result.toJS,
      );