showDanger static method
void
showDanger(})
Implementation
static void showDanger(String title, String message, {alertPosition = AlertPosition.bottom, onTap, closeOnTap = false}) {
final context = navigatorKey.currentContext;
final alertState = Provider.of<_AlertState>(context!, listen: false);
alertState.notify(
_Alert(title: title, message: message, alertPosition: alertPosition, alertType: AlertType.danger, onTap: onTap, closeOnTap: closeOnTap),
);
}