use_build_context_synchronously false positive when using if case #4795
Labels
false-negative
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
I'm receiving a
use_build_context_synchronously
lint warning using if case with the given example, although there is acontext.mounted
check.To Reproduce
Expected behavior
No lint warning.
Versions
The text was updated successfully, but these errors were encountered: