alert function

void alert(
  1. BuildContext context,
  2. String title
)

Implementation

void alert(BuildContext context, String title) {
  showDialog(
      context: context,
      builder: (BuildContext context) {
        return AlertDialog(
          title: Text(title),
        );
      });
}