ReadScanDataResponse constructor
ReadScanDataResponse({
- required String job,
- required OperationResult result,
- ByteBuffer? data,
- int? estimatedCompletion,
Implementation
ReadScanDataResponse({
/// Same job handle passed to `readScanData()`.
required String job,
/// The backend result of reading data. If this is
/// `OperationResult.SUCCESS`, `data` will contain the
/// next (possibly zero-length) chunk of image data that was ready for
/// reading. If this is `OperationResult.EOF`, `data`
/// will contain the final chunk of image data.
required OperationResult result,
/// If result is `OperationResult.SUCCESS`, the next chunk of
/// scanned image data.
ByteBuffer? data,
/// If result is `OperationResult.SUCCESS`, an estimate of how
/// much of the total scan data has been delivered so far, in the range
/// 0-100.
int? estimatedCompletion,
}) : _wrapped = $js.ReadScanDataResponse(
job: job,
result: result.toJS,
data: data?.toJS,
estimatedCompletion: estimatedCompletion,
);