RxList<E>.generate constructor

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

Generates a list of values.

Implementation

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