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