Commit d449a17
authored
[various] Remove unnecessary null checks (flutter#4060)
Removes `unnecessary_null_comparison: ignore` from the repository analysis options. Now that Dart 3 has reached the stable channel, all fully supported customers will be running in strong mode, so the extra null checks are no longer needed. While many packages do support earlier versions, this won't break anyone, it will just mean that people who are both a) using old versions of Flutter and b) violating the API contract by passing null to a non-nullable type, won't get error messages that are as obvious, which is fine for the best-effort support level we give to pre-current-stable versions of Flutter.1 parent 30ebcf3 commit d449a17
File tree
136 files changed
+242
-396
lines changed- packages
- camera
- camera_android_camerax
- example/lib
- lib/src
- camera_android
- example/lib
- camera_avfoundation
- example/lib
- camera_platform_interface
- lib/src/events
- camera_web
- lib/src
- camera
- example/lib
- dynamic_layouts
- lib/src
- flutter_markdown/test
- flutter_migrate
- lib/src
- base
- test
- src
- test_data
- go_router
- lib/src
- google_maps_flutter
- google_maps_flutter_android
- lib/src
- google_maps_flutter_ios
- lib/src
- google_maps_flutter_platform_interface
- lib/src
- method_channel
- types
- google_maps_flutter_web
- lib/src
- google_maps_flutter
- lib/src
- test
- google_sign_in/google_sign_in
- lib
- in_app_purchase
- in_app_purchase_android
- lib/src
- billing_client_wrappers
- in_app_purchase_platform_interface
- lib/src/errors
- in_app_purchase_storekit
- lib/src
- store_kit_wrappers
- ios_platform_images/example/test
- metrics_center
- lib/src
- path_provider/path_provider_linux
- lib/src
- quick_actions
- quick_actions_android
- example/lib
- quick_actions_ios
- example/lib
- quick_actions
- example/lib
- url_launcher/url_launcher_web
- lib
- src
- third_party/platform_detect
- web_benchmarks
- lib
- src
- webview_flutter
- webview_flutter_android
- example/lib
- legacy
- webview_flutter_platform_interface
- lib/src/legacy/types
- webview_flutter_web
- example/lib/legacy
- webview_flutter_wkwebview
- example/lib
- legacy
- webview_flutter
- example/lib
- lib/src/legacy
- script/tool/lib/src
- common
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
136 files changed
+242
-396
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 253 | + | |
256 | 254 | | |
257 | 255 | | |
258 | 256 | | |
| |||
1000 | 998 | | |
1001 | 999 | | |
1002 | 1000 | | |
1003 | | - | |
| 1001 | + | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | 1004 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
1008 | 1006 | | |
1009 | 1007 | | |
1010 | 1008 | | |
1011 | | - | |
| 1009 | + | |
1012 | 1010 | | |
1013 | 1011 | | |
1014 | 1012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
| |||
985 | 983 | | |
986 | 984 | | |
987 | 985 | | |
988 | | - | |
| 986 | + | |
989 | 987 | | |
990 | 988 | | |
991 | 989 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
0 commit comments