File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
analyzer/tool/diagnostics Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29271,7 +29271,7 @@ The analyzer produces this diagnostic when a `BuildContext` is referenced
29271
29271
by a `StatefulWidget` after an asynchronous gap without first checking the
29272
29272
`mounted` property.
29273
29273
29274
- Storing a `BuildContext` for later use can lead to difficult to diagnose
29274
+ Storing a `BuildContext` for later use can lead to difficult-to- diagnose
29275
29275
crashes. Asynchronous gaps implicitly store a `BuildContext`, making them
29276
29276
easy to overlook for diagnosis.
29277
29277
Original file line number Diff line number Diff line change @@ -13161,7 +13161,7 @@ LintCode:
13161
13161
by a `StatefulWidget` after an asynchronous gap without first checking the
13162
13162
`mounted` property.
13163
13163
13164
- Storing a `BuildContext` for later use can lead to difficult to diagnose
13164
+ Storing a `BuildContext` for later use can lead to difficult-to- diagnose
13165
13165
crashes. Asynchronous gaps implicitly store a `BuildContext`, making them
13166
13166
easy to overlook for diagnosis.
13167
13167
@@ -13213,7 +13213,7 @@ LintCode:
13213
13213
deprecatedDetails : |-
13214
13214
**DON'T** use `BuildContext` across asynchronous gaps.
13215
13215
13216
- Storing `BuildContext` for later usage can easily lead to difficult to diagnose
13216
+ Storing `BuildContext` for later usage can easily lead to difficult-to- diagnose
13217
13217
crashes. Asynchronous gaps are implicitly storing `BuildContext` and are some of
13218
13218
the easiest to overlook when writing code.
13219
13219
You can’t perform that action at this time.
0 commit comments