showToast static method
Show a toast
Implementation
static Future<ABUSResult> showToast({
required String message,
ToastType type = ToastType.info,
Duration? duration,
Set<String>? tags,
int priority = 0,
bool replace = false,
}) {
final event = ToastEvent(
id: 'toast_${DateTime.now().millisecondsSinceEpoch}',
message: message,
type: type,
duration: duration,
tags: tags ?? {},
priority: priority,
);
return ABUS
.execute(ShowFeedbackInteraction(event: event, replace: replace));
}