myShowAlert method

Future<void> myShowAlert(
  1. String title,
  2. String msg,
  3. void onOkay(),
  4. BuildContext context,
)

Implementation

Future<void> myShowAlert(String title, String msg, void Function() onOkay, BuildContext context) {
return showDialog<void>(
context: context,
builder: (context)=>AlertDialog(
title: myTextView(title),
content: myTextView(msg),
actions: [
myButton("Okay!", true, ()=>onOkay(), () {}, icon: Icons.check_circle_outline, btnType: "fabm"),
],
),
);
}