show static method
void
show(})
Implementation
static void show(
String message, {
Duration duration = const Duration(seconds: 2),
IconData? icon,
Color? iconColor,
ToastType type = ToastType.success,
}) {
final overlay = Get.key.currentState?.overlay;
if (overlay == null) return;
late OverlayEntry entry;
entry = OverlayEntry(
builder: (_) => WindowsToast(
message: message,
icon: icon,
iconColor: iconColor,
type: type,
duration: duration,
onDismissed: () => entry.remove(),
),
);
overlay.insert(entry);
}