CloseScannerResponse constructor

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

Implementation

CloseScannerResponse({
  /// The same scanner handle as was passed to [closeScanner].
  required String scannerHandle,

  /// The result of closing the scanner. Even if this value is not
  /// `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,
      );