RxList<E>.generate constructor Null safety

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 generator(int index),
    {bool growable = true}) {
  return RxList(List.generate(length, generator, growable: growable));
}