submitJob method
Submits the job for printing. If the extension is not listed in
the
PrintingAPIExtensionsAllowlist
policy,
the user is prompted to accept the print job.
Before Chrome 120, this function did not return a promise.
Implementation
Future<SubmitJobResponse> submitJob(SubmitJobRequest request) async {
var $res = await promiseToFuture<$js.SubmitJobResponse>(
$js.chrome.printing.submitJob(request.toJS));
return SubmitJobResponse.fromJS($res);
}