Gtk.TreeModel.prototype.iter_n_children

function iter_n_children(iter:Gtk.TreeIter):Number {
    // Gjs wrapper for gtk_tree_model_iter_n_children()
}

Returns the number of children that iter has.

As a special case, if iter is null, then the number of toplevel nodes is returned.

iter

the Gtk.TreeIter, or null

Returns

the number of children of iter