Pauses the timers for all visible toasts.
()
| 154 | |
| 155 | /** Pauses the timers for all visible toasts. */ |
| 156 | pauseAll(): void { |
| 157 | for (let toast of this.visibleToasts) { |
| 158 | if (toast.timer) { |
| 159 | toast.timer.pause(); |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /** Resumes the timers for all visible toasts. */ |
| 165 | resumeAll(): void { |