showToast method
void
showToast(})
Show a toast with description.
id picks the style, success unless given; a style registered via
Nylo.addToastNotifications works too.
Implementation
void showToast(
String description, {
String? title,
String id = 'success',
Duration? duration,
Map<String, dynamic>? data,
}) {
action(
"toast-custom",
data: {
"title": title,
"description": description,
"id": id,
"duration": duration,
"data": data,
},
);
}