Commit 7759c1d
authored
Migrate to null safety (flutter#110)
- *Breaking* The `Font.merge` and `BoxEdge.merge` factory constructors
are now static methods since a factory constructor can't return null,
but that was the entire point of these constructors.
- Add nullable return types on methods that have a branch returning
`null`.
- Add a lot of `?` on parameters that can't provably be non-null.
- Add a lot of `!`.
- Add overrides of `TreeNode.clone` to tighten the return type in a few
places and allow some skipped explicit casts.
- Remove some dead code on conditional branches that never would have
been followed, even before the migration, but weren't obvious
statically.
- Add explicit casts.1 parent 1e96b6c commit 7759c1d
File tree
30 files changed
+617
-671
lines changed- example
- lib
- src
- test
30 files changed
+617
-671
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments