David PHAM-VAN

Use assert for error message

@@ -57,7 +57,7 @@ Future<PdfImage> pdfImageFromImageProvider( @@ -57,7 +57,7 @@ Future<PdfImage> pdfImageFromImageProvider(
57 onError(exception, stackTrace); 57 onError(exception, stackTrace);
58 } else { 58 } else {
59 // https://groups.google.com/forum/#!topic/flutter-announce/hp1RNIgej38 59 // https://groups.google.com/forum/#!topic/flutter-announce/hp1RNIgej38
60 - AssertionError('image failed to load'); 60 + assert(false, 'image failed to load');
61 } 61 }
62 } 62 }
63 63