openDialog function

void openDialog(
  1. BuildContext context,
  2. Widget title,
  3. Widget content,
  4. List<Widget> actions,
)

Implementation

void openDialog(
    BuildContext context, Widget title, Widget content, List<Widget> actions) {
  showDialog(
      context: context,
      builder: (context) {
        return AlertDialog(
          actions: actions,
          title: title,
          content: content,
        );
      });
}