showToastDanger method
void
showToastDanger({})
Displays a Toast message containing "Error" for the title, you
only need to provide a description.
Implementation
void showToastDanger({
String? title,
String? description,
Duration? duration,
Map<String, dynamic>? data,
}) {
showToast(
title: title,
description: description,
duration: duration,
data: data,
id: 'danger',
);
}