set_default_response


Description:

public void set_default_response (string? response)

Sets the ID of the default response of this.

The button corresponding to this response will be set as the default widget of this.

If not set, the default widget will not be set, and the last added response will be focused by default.

See [property@Dialog:default-widget].

Parameters:

this

an alert dialog

response

the default response ID