GetScannerListResponse constructor

GetScannerListResponse({
  1. required OperationResult result,
  2. required List<ScannerInfo> scanners,
})

Implementation

GetScannerListResponse({
  /// The backend's enumeration result.  Note that partial results could be
  /// returned even if this indicates an error.
  required OperationResult result,

  /// A possibly-empty list of scanners that match the provided
  /// `DeviceFilter`.
  required List<ScannerInfo> scanners,
}) : _wrapped = $js.GetScannerListResponse(
        result: result.toJS,
        scanners: scanners.toJSArray((e) => e.toJS),
      );