showDiscardDialog method

Future<ActionDialogOptions> showDiscardDialog(
  1. BuildContext context
)

Implementation

Future<ActionDialogOptions> showDiscardDialog(BuildContext context) async {
  return showActionDialog(
    context,
    'Discard unsaved changes?',
    'Are you sure you want to discard all changes?',
    'Discard',
  );
}