onGetPrintersRequested property
EventStream<void Function(List<PrinterInfo> )>
get
onGetPrintersRequested
Event fired when print manager requests printers provided by extensions. |resultCallback|: Callback to return printer list. Every listener must call callback exactly once.
Implementation
EventStream<void Function(List<PrinterInfo>)> get onGetPrintersRequested =>
$js.chrome.printerProvider.onGetPrintersRequested
.asStream(($c) => ($js.PrintersCallback resultCallback) {
return $c((List<PrinterInfo> printerInfo) {
//ignore: avoid_dynamic_calls
(resultCallback
as Function)(printerInfo.toJSArray((e) => e.toJS));
});
}.toJS);