add null safety guide to readme (#299)

This commit is contained in:
fzyzcjy
2021-03-19 08:20:13 +08:00
committed by GitHub
parent 4e51e34bdc
commit 7c59510b60

View File

@ -110,6 +110,12 @@ public interface Api2Host {
}
```
## Null Safety (NNBD)
In order to generate null-safe code run the command line with the extra argument
`--dart_null_safety`. For example:
`flutter pub run pigeon --input ./pigeons/messages.dart --dart_null_safety`.
## Feedback
File an issue in [flutter/flutter](https://github.com/flutter/flutter) with the