showToastWarning method

void showToastWarning({
  1. String? title,
  2. required String description,
  3. ToastNotificationStyleType? style,
})

Displays a Toast message containing "Warning" for the title, you only need to provide a description.

Implementation

void showToastWarning(
    {String? title,
    required String description,
    ToastNotificationStyleType? style}) {
  updatePageState("toast-warning", {
    "title": title ?? "Warning",
    "description": description,
    "style": style ?? ToastNotificationStyleType.warning
  });
}