DSIAlertDialog function
Implementation
DSIAlertDialog(context, String text, Function onPressed) {
showDialog(
context: context,
builder: (_) => AlertDialog(
content: Text(text),
actions: [
TextButton(
onPressed: () {
onPressed();
},
child: Text("OK"))
],
),
);
}