generate<E> method

List<E> generate<E>(
  1. E generator(
    1. int index
    ), {
  2. bool growable = true,
})

List.generate((index)=>E);

Implementation

List<E> generate<E>(E Function(int index) generator,
        {bool growable = true}) =>
    length.generate<E>((int index) => generator(index), growable: growable);