showInfoToast static method
Implementation
static void showInfoToast(
BuildContext context, String title, String message) {
if (toastTimer == null || !toastTimer!.isActive) {
_overlayEntry = createOverlayEntry(context, title, message,
const Color(0xFF767676), const Color(0xFFF9F9F9));
Overlay.of(context).insert(_overlayEntry!);
toastTimer = Timer(const Duration(seconds: 2), () {
if (_overlayEntry != null) {
_overlayEntry?.remove();
}
});
}
}