confirmAction static method

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

Perform a confirm action

Implementation

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