flutter / flutter/flutter-intellij
Misleading error message when you use a class that doesn't have an import
Open
dependency: dart sdk
P1
- Dominant language
- Java
- Stars
- 2k
- Forks
- 356
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 27
Description

Here, I construct a class, one which is not yet imported into my file.
The first error is confusing and probably not helpful: "returns type dynamic" .. ? it's returning a type of LotteryStateBadge
The second error is probably the one we want, however I'd love for it to also say ", not found in any imports"
And then, I'd love for a quick fix to be added right here saying "Import this class?"
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.