alertDialog function
Implementation
Future<dynamic> alertDialog({
String title = 'Alert',
String content = 'Alert message',
Function? confirm,
}) async {
return _createDialog(
title: title,
content: content,
actions: [
Button(
label: 'OK',
backgroundColor: Colors.red,
color: Colors.white,
borderRadius: 10,
borderColor: Colors.black,
onClick: (_) {
Get.back(result: true);
if (confirm != null) confirm();
},
),
],
);
}