Describe the bug
When building Flutter web with wasm dry run enabled, pdfx reports warnings from pdfjs.dart about default parameter initializers on static interop external functions.
To Reproduce
Steps to reproduce the behavior:
- Create a Flutter app.
- Add
pdfx: 2.9.2.
- Run
flutter build web --no-tree-shake-icons.
- See warnings in
package:pdfx/src/renderer/web/pdfjs.dart (around lines 136-138, 205-207): “Initializers for parameters are ignored on static interop external functions.”
Expected behavior
No wasm dry-run warnings from pdfx static interop declarations.
Smartphone (please complete the following information):
- Device: N/A
- OS: macOS
- Version: Flutter 3.41.7, Dart 3.11.5, pdfx 2.9.2
Describe the bug
When building Flutter web with wasm dry run enabled,
pdfxreports warnings frompdfjs.dartabout default parameter initializers on static interop external functions.To Reproduce
Steps to reproduce the behavior:
pdfx: 2.9.2.flutter build web --no-tree-shake-icons.package:pdfx/src/renderer/web/pdfjs.dart(around lines 136-138, 205-207): “Initializers for parameters are ignored on static interop external functions.”Expected behavior
No wasm dry-run warnings from
pdfxstatic interop declarations.Smartphone (please complete the following information):