removeQueuedCustomDencendToasts method
void
removeQueuedCustomDencendToasts()
清空所有待显示的Toast
移除当前显示的Toast并清空整个队列
Implementation
void removeQueuedCustomDencendToasts() {
// 取消计时器
_timer?.cancel();
_fadeTimer?.cancel();
_timer = null;
_fadeTimer = null;
// 清空队列
_overlayQueue.clear();
// 移除当前OverlayEntry
_entry?.remove();
_entry = null;
// 更新全局状态
DencendToast.isCurrentlyShowingToast = false;
}