Closed shelverizr closed 9 months ago
I get that on my machine too (and in CI), but it appears to be a spurious error in Flutter/Dart internals:
flutter clean
That's very strange. After I ran flutter clean
and flutter pub get
, I didn't have the same problem even with other projects. Maybe you should add it to the README.
I figured it out. The compiler seems to not handle a typedef alias of GlobalKey
that doesn't specify any type arg (despite GlobalKey
having an @optionalTypeArgs
annotation). I'm not sure why cleaning the project prevents the crash.
Regardless I've published a new point release that passes CI, so hopefully this won't annoy anyone else.
VSCode debug console output:
main.dart:
pubspec.yaml:
pubspec.lock: