showToastDanger method
dynamic
showToastDanger({
- String? title,
- required String description,
- ToastNotificationStyleType? style,
Displays a Toast message containing "Error" for the title, you
only need to provide a description
.
Implementation
showToastDanger(
{String? title,
required String description,
ToastNotificationStyleType? style}) {
showToast(
title: title ?? "Error",
description: description,
style: style ?? ToastNotificationStyleType.danger);
}