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

Warning: Operand of null-aware operation #4

Open
Paroca72 opened this issue Jun 19, 2022 · 1 comment
Open

Warning: Operand of null-aware operation #4

Paroca72 opened this issue Jun 19, 2022 · 1 comment

Comments

@Paroca72
Copy link

With flutter 3.0 I started to have a warning about null-aware operation.

/C:/Program%20Files/flutter/.pub-cache/hosted/pub.dartlang.org/section_view-2.0.5/lib/src/sectionViewAlphabetList.dart:43:24: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((_) {

Thanks

@robert-luoqing
Copy link
Owner

Resolved

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

No branches or pull requests

2 participants