Gtk.Switch.new

function new():Gtk.Widget {
    // Gjs wrapper for gtk_switch_new()
}

Creates a new Gtk.Switch widget.

Since 3.0

Returns

the newly created Gtk.Switch instance