alert method

dynamic alert()

Implementation

alert() {
  showDialog(
    context: context,
    barrierDismissible: false,
    builder: (BuildContext context) => dialog(type: type),
  );
}