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