StartScanResponse constructor
StartScanResponse({
- required String scannerHandle,
- required OperationResult result,
- 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,
);