alert method

dynamic alert(
  1. dynamic context, {
  2. ToastNotificationStyleType style = ToastNotificationStyleType.WARNING,
  3. Duration? duration,
})

The alert which will be displayed.

Implementation

alert(context,
    {ToastNotificationStyleType style = ToastNotificationStyleType.WARNING,
    Duration? duration}) {
  showToastNotification(context,
      style: style,
      title: title,
      description: description,
      duration: duration);
}