dart List.generate start from 1 code example Example: generate method o dart list var list = new List<int>.generate(10, (i) => i + 1);