Commit 6546d0c
committed
Refactor: Improve list creation in _generateSorted
Make the list generation in the `_generateSorted` 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 d5d4f52 commit 6546d0c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments