Gtk.TextIter.prototype.set_line

function set_line(line_number:Number):void {
    // Gjs wrapper for gtk_text_iter_set_line()
}

Moves iterator iter to the start of the line line_number. If line_number is negative or larger than the number of lines in the buffer, moves iter to the start of the last line in the buffer.

line_number

line number (counted from 0)