inc function

List<int> inc({
  1. int start = 0,
  2. required int length,
})

产生一个序列列表 >>>

Implementation

List<int> inc({int start = 0, required int length}) {
  return List<int>.generate(length, (index) => start + index);
}