showToastDanger static method

dynamic showToastDanger(
  1. dynamic state, {
  2. String? title,
  3. required String description,
  4. ToastNotificationStyleType? style,
})

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

Implementation

static showToastDanger(dynamic state,
    {String? title,
    required String description,
    ToastNotificationStyleType? style}) {
  _updateState(_findStateName(state), "toast-danger", {
    "title": title ?? "Error",
    "description": description,
    "style": style ?? ToastNotificationStyleType.danger
  });
}