mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 15:23:25 +08:00
add null safety guide to readme (#299)
This commit is contained in:
@ -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
|
## Feedback
|
||||||
|
|
||||||
File an issue in [flutter/flutter](https://github.com/flutter/flutter) with the
|
File an issue in [flutter/flutter](https://github.com/flutter/flutter) with the
|
||||||
|
Reference in New Issue
Block a user