SetOptionsResponse constructor
SetOptionsResponse({
- required String scannerHandle,
- required List<
SetOptionResult> results, - Map? options,
Implementation
SetOptionsResponse({
/// The same scanner handle passed to `setOptions()`.
required String scannerHandle,
/// One result per passed-in `OptionSetting`.
required List<SetOptionResult> results,
/// Updated key-value mapping from option names to
/// `ScannerOption` containing the new configuration after
/// attempting to set all supplied options. This has the same structure as
/// the `options` field in `OpenScannerResponse`.
///
/// This field will be set even if some options were not set successfully,
/// but will be unset if retrieving the updated configuration fails (e.g.,
/// if the scanner is disconnected in the middle).
Map? options,
}) : _wrapped = $js.SetOptionsResponse(
scannerHandle: scannerHandle,
results: results.toJSArray((e) => e.toJS),
options: options?.jsify(),
);