Visitar URL original
add null safety guide to readme (#299) · flutter/packages@7c59510 · GitHub
Skip to content

Commit 7c59510

Browse files
authored
add null safety guide to readme (#299)
1 parent 4e51e34 commit 7c59510

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/pigeon/README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ public interface Api2Host {
110110
}
111111
```
112112

113+
## Null Safety (NNBD)
114+
115+
In order to generate null-safe code run the command line with the extra argument
116+
`--dart_null_safety`. For example:
117+
`flutter pub run pigeon --input ./pigeons/messages.dart --dart_null_safety`.
118+
113119
## Feedback
114120

115121
File an issue in [flutter/flutter](https://github.com/flutter/flutter) with the

0 commit comments

Comments
 (0)