Arr<T>.generate constructor

Arr<T>.generate(
  1. int length,
  2. T generator(
    1. int
    )
)

Implementation

@pragma("vm:prefer-inline")
Arr.generate(int length, T Function(int) generator)
    : _list = List.generate(length, generator, growable: false);