Commit 4f3bb71
authored
Refactor a List.generate to List.filled (flutter#87)
The meaning is more clear without the indirection of a closure that
always returns the same value, and it will have better performance.
Also replace the `List.insert` by making the length longer to start
with and conditionally setting the first value.1 parent 3e07d53 commit 4f3bb71
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 131 | | |
140 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
141 | 137 | | |
142 | 138 | | |
143 | 139 | | |
| |||
0 commit comments