We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HtmlDocument
visibilityState
String?
Please refer to this repository: https://github.com/harkairt/test_compile_error especially this line
Steps:
fvm use
flutter pub get && flutter run -d 'chrome'
flutter test
Error: Method 'toTabVisibilityChangeEvent' cannot be called on 'String?' because it is potentially null. Try calling using ?. instead.
final event = document.visibilityState.toTabVisibilityChangeEvent(); // final event = (document.visibilityState ?? '').toTabVisibilityChangeEvent();
note: the IDE will warn about unnecessary fallback '' since it recognizes visibilityState to be String and not String?
''
String
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please refer to this repository: https://github.com/harkairt/test_compile_error
especially this line
Steps:
fvm use
(or simply use a global flutter 3.16.5)flutter pub get && flutter run -d 'chrome'
flutter test
Error: Method 'toTabVisibilityChangeEvent' cannot be called on 'String?' because it is potentially null. Try calling using ?. instead.
note: the IDE will warn about unnecessary fallback
''
since it recognizesvisibilityState
to beString
and notString?
The text was updated successfully, but these errors were encountered: