source_gen icon indicating copy to clipboard operation
source_gen copied to clipboard

TypeChecker.forRuntime doesn't work on windows

Open jakemac53 opened this issue 4 years ago • 2 comments

jakemac53 avatar Nov 24 '21 18:11 jakemac53

The same happened to me on flutter 3.19.6. But I can't repeat the problem. On macOS with example app TypeChecker.fromRuntime works just fine. But on another app if I call TypeChecker.fromRuntime(SomeClass).hasAnnotationOf(FieldElement) with the same code it fails.

mozerrr avatar Jun 21 '24 08:06 mozerrr

Actually, it was because of my field was getter, my bad.

mozerrr avatar Jun 21 '24 08:06 mozerrr