confirmAction method

void confirmAction(
  1. dynamic action(), {
  2. required String title,
  3. String dismissText = "Cancel",
})

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});
}