confirmAction static method

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

Perform a confirm action

Implementation

static confirmAction(String state,
    {required Function() action,
    required String title,
    String dismissText = "Cancel"}) async {
  _updateState(state, "confirm-action",
      {"action": action, "title": title, "dismissText": dismissText});
}