showToastDanger static method
Displays a Toast message containing "Error" for the title, you
only need to provide a description.
Implementation
static void showToastDanger(
dynamic state, {
String? title,
required String description,
}) {
_updateState(_findStateName(state), "toast-danger", {
"title": title ?? "Error",
"description": description,
});
}