This repository was archived by the owner on Nov 1, 2024. It is now read-only.
Commit 2fbb4eb
authored
Use late final for _timer fields (#53)
The field in `AnsiProgress`had been non-final so that it could be
initialized in the constructor, the initialization expression needs
access to `this`. With null safety this pattern can be expressed with a
`late final` field.
The field in `VerboseLogger` could have been `final` before the
migration.1 parent 50cc840 commit 2fbb4eb
2 files changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 211 | | |
215 | 212 | | |
216 | 213 | | |
| |||
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
261 | | - | |
| 258 | + | |
262 | 259 | | |
263 | 260 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 261 | + | |
267 | 262 | | |
268 | 263 | | |
269 | 264 | | |
| |||
0 commit comments