showToastDanger method

void showToastDanger({
  1. String? title,
  2. required String description,
})

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

Implementation

void showToastDanger({String? title, required String description}) {
  if (state == null) return;
  StateAction.showToastDanger(state!, title: title, description: description);
}