Skip to content
New issue

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

Warnings in 0.6.1 for null-aware operation #134

Closed
JamesCullum opened this issue Mar 9, 2021 · 2 comments · Fixed by #135
Closed

Warnings in 0.6.1 for null-aware operation #134

JamesCullum opened this issue Mar 9, 2021 · 2 comments · Fixed by #135

Comments

@JamesCullum
Copy link

JamesCullum commented Mar 9, 2021

If I build with the newest version 0.6.1, I get the following warnings in Android Studio.

../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wiredash-0.6.1/lib/src/common/options/wiredash_options_data.dart:17:33: Warning: Operand of null-aware operation '??' has type 'Locale' which excludes null.

  • 'Locale' is from 'dart:ui'.
    _currentLocale = locale ?? window.locale ?? const Locale('en', 'US'),
    ^
    ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wiredash-0.6.1/lib/src/common/options/wiredash_options_data.dart:65:31: Warning: Operand of null-aware operation '??' has type 'Locale' which excludes null.
  • 'Locale' is from 'dart:ui'.
    _currentLocale = window.locale ?? const Locale('en', 'US');
@passsy
Copy link
Member

passsy commented Mar 9, 2021

Thanks for the report. The warning will disappear with v0.6.2

@JamesCullum
Copy link
Author

JamesCullum commented Mar 9, 2021

Thanks a lot for the fast work, I can confirm that it's fixed now.
One small note - I was not using the 1.27 dev channel, but the 2.0.1 stable one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants