)
Creates a fixed-length list of the given length, and initializes the
value at each position with fill
:
new List<int>.filled(3, 0); // [0, 0, 0]
The length
must not be negative or null.
Creates a fixed-length list of the given length, and initializes the
value at each position with fill
:
new List<int>.filled(3, 0); // [0, 0, 0]
The length
must not be negative or null.