newList method
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;
}