void writeArray(List<int> values) { for (var i = 0; i < values.length; i++) { this[i] = values[i]; } }