I have just updated to latest dart-beta version (2.11.0-213.5.beta) and upgraded my dependencies to use the null safety
versions:
dev_dependencies:
pedantic: ^1.10.0-nullsafety
test: ^1.16.0-nullsafety
I can successfully run dart analyze .
after annotating all my types correctly to work with NNBD.
Now, I cannot run my tests at all because the test
command does not yet seem to accept the flag --enable-experiment=non-nullable
.
I can run my package's examples with dart --enable-experiment=non-nullable example/actors_example.dart
fine.
How to make the test runner use NNBD so I can run my tests?