confirmAction method
Perform a confirm action
Implementation
void confirmAction(Function() action,
{required String title, String dismissText = "Cancel"}) async {
updatePageState("confirm-action",
{"action": action, "title": title, "dismissText": dismissText});
}