BuildContext across async gaps with mounted check false positive with condition OR #5074
Labels
false-positive
P3
A lower priority bug or feature request
set-flutter
Affects a rule in the recommended Flutter rule set
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
Lint error use_build_context_synchronously when it was already checked. It's similar to #5069 but slightly different. I cannot solve by the same way.
To Reproduce
Inside
class _MyHomePageState extends State<MyHomePage>
:Expected behavior
No lint infos, because
context.mounted
was already checked previously.Additional context
Upgraded repo to try: https://github.com/vendelin8/dart-lintbug
The text was updated successfully, but these errors were encountered: