showDialogNotification method

void showDialogNotification({
  1. required String title,
  2. required String content,
  3. Function? onClick,
})

Implementation

void showDialogNotification(
    {required String title, required String content, Function? onClick}) {

  if (_numberDialog > 0) {
    Navigator.of(_context).pop();
  }
  CustomAwesomeDialog(
      context: _context,
      dialogType: DialogType.INFO,
      animType: AnimType.BOTTOMSLIDE,
      title: title,
      desc: content,
      btnCancel: _buildButton('OK', Theme.of(_context).primaryColor,
          onClick: onClick),
      customHeader: _buildHeader(Icons.priority_high,
          color: Theme.of(_context).primaryColor))
    ..show();
  _numberDialog++;
}