Gtk.ToggleAction.prototype.get_active

function get_active():Boolean {
    // Gjs wrapper for gtk_toggle_action_get_active()
}

Returns the checked state of the toggle action.

Since 2.4

Returns

the checked state of the toggle action