newList method

  1. @override
List<int> newList(
  1. int length, [
  2. int? fillValue
])
override

Creates a fixed-length list of this data type.

Implementation

@override
List<int> newList(int length, [int? fillValue]) {
  final result = _newList(length);
  if (fillValue != null && fillValue != defaultValue) {
    result.fillRange(0, length, fillValue);
  }
  return result;
}