StartScanResponse constructor

StartScanResponse({
  1. required String scannerHandle,
  2. required OperationResult result,
  3. String? job,
})

Implementation

StartScanResponse({
  /// The same scanner handle that was passed to `startScan()`.
  required String scannerHandle,

  /// The backend's start scan result.
  required OperationResult result,

  /// If `result` is `OperationResult.SUCCESS`, a handle
  /// that can be used to read scan data or cancel the job.
  String? job,
}) : _wrapped = $js.StartScanResponse(
        scannerHandle: scannerHandle,
        result: result.toJS,
        job: job,
      );