David PHAM-VAN

Add missing awaits

@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 ## 3.6.1 3 ## 3.6.1
4 4
5 - Update the example to use PdfPreview 5 - Update the example to use PdfPreview
  6 +- Add missing `await`s
6 7
7 ## 3.6.0 8 ## 3.6.0
8 9
@@ -91,7 +91,7 @@ class MethodChannelPrinting extends PrintingPlatform { @@ -91,7 +91,7 @@ class MethodChannelPrinting extends PrintingPlatform {
91 break; 91 break;
92 case 'onPageRasterEnd': 92 case 'onPageRasterEnd':
93 final job = _printJobs[call.arguments['job']]; 93 final job = _printJobs[call.arguments['job']];
94 - job.onPageRasterized.close(); 94 + await job.onPageRasterized.close();
95 _printJobs.remove(job.index); 95 _printJobs.remove(job.index);
96 break; 96 break;
97 } 97 }
@@ -175,7 +175,7 @@ mixin Printing { @@ -175,7 +175,7 @@ mixin Printing {
175 assert(document != null || bytes != null); 175 assert(document != null || bytes != null);
176 assert(!(document == null && bytes == null)); 176 assert(!(document == null && bytes == null));
177 177
178 - layoutPdf( 178 + await layoutPdf(
179 onLayout: (PdfPageFormat format) => 179 onLayout: (PdfPageFormat format) =>
180 document != null ? document.save() : bytes); 180 document != null ? document.save() : bytes);
181 } 181 }