dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

`HtmlDocument`'s `visibilityState` is `String?` when compiling tests. #93

Open harkairt opened 8 months ago

harkairt commented 8 months ago

Please refer to this repository: https://github.com/harkairt/test_compile_error especially this line

Steps:

note: the IDE will warn about unnecessary fallback '' since it recognizes visibilityState to be String and not String?