showToastSuccess static method
dynamic
showToastSuccess(
- String state, {
- String? title,
- required String description,
- ToastNotificationStyleType? style,
Displays a Toast message containing "Success" for the title, you
only need to provide a description
.
Implementation
static showToastSuccess(String state,
{String? title,
required String description,
ToastNotificationStyleType? style}) {
_updateState(state, "toast-success", {
"title": title ?? "Success",
"description": description,
"style": style ?? ToastNotificationStyleType.success
});
}