SetOptionsResponse constructor
SetOptionsResponse({
- required String scannerHandle,
- required List<
SetOptionResult> results, - Map? options,
Implementation
SetOptionsResponse({
/// Provides the scanner handle passed to `setOptions()`.
required String scannerHandle,
/// An array of results, one each for every passed-in
/// `OptionSetting`.
required List<SetOptionResult> results,
/// An updated key-value mapping from option names to
/// [ScannerOption] values containing the new configuration after
/// attempting to set all supplied options. This has the same structure as
/// the `options` property in [OpenScannerResponse].
///
/// This property will be set even if some options were not set
/// successfully,
/// but will be unset if retrieving the updated configuration fails (for
/// example, if the scanner is disconnected in the middle of scanning).
Map? options,
}) : _wrapped = $js.SetOptionsResponse(
scannerHandle: scannerHandle,
results: results.toJSArray((e) => e.toJS),
options: options?.jsify(),
);