Gtk.ToggleAction.prototype.set_active

function set_active(is_active:Boolean):void {
    // Gjs wrapper for gtk_toggle_action_set_active()
}

Sets the checked state on the toggle action.

Since 2.4

is_active

whether the action should be checked or not