show method
override
Shows a modal ConfirmDialog. See ConfirmDialog for a description of the arguments. While ConfirmDialog needs a close callback, this async method returns the user input (which consists of the pressed button since other user input can't be entered in a ConfirmDialog.
Implementation
static Future<UserInput> show(
String htmlTitleText,
List<String> buttonLabels,
) async {
return InputDialog.show(
null, htmlTitleText, null, null, null, null, null, false, buttonLabels);
}