Dartでrange 5つの要素を0, 1, 2, 3, 4
List<int>.generate(5, (i) => i)
List<int>.generate(5, (i) => i + 1)
なら 1, 2, 3, 4, 5
https://stackoverflow.com/questions/37798397/dart-create-a-list-from-0-to-n
Dartでrange 5つの要素を0, 1, 2, 3, 4
List<int>.generate(5, (i) => i)
List<int>.generate(5, (i) => i + 1)
なら 1, 2, 3, 4, 5
https://stackoverflow.com/questions/37798397/dart-create-a-list-from-0-to-n