close

fun close(returnValue: String = definedExternally)(source)

The close() method of the HTMLDialogElement interface closes the

. An optional string may be passed as an argument, updating the returnValue of the dialog.

MDN Reference