Commit d5d4f52
committed
Refactor: Improve list creation in _generateReverse
Make the list generation in the `_generateReverse` helper more explicit and performant.
- The `base` list is now created with `growable: false`, as it's a read-only template.
- The final copies are created using `List.of` with an explicit `growable: true` to clearly signal that they are mutable.1 parent 3b64a20 commit d5d4f52
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments