getPrinterInfo method

Future<GetPrinterInfoResponse> getPrinterInfo(
  1. String printerId
)

Returns the status and capabilities of the printer in CDD format. This call will fail with a runtime error if no printers with given id are installed.

Implementation

Future<GetPrinterInfoResponse> getPrinterInfo(String printerId) async {
  var $res = await promiseToFuture<$js.GetPrinterInfoResponse>(
      $js.chrome.printing.getPrinterInfo(printerId));
  return GetPrinterInfoResponse.fromJS($res);
}