Remove toast programmatically
An id is returned each time you display a toast, use it to remove a given toast programmatically by calling toast.remove(toastId)
DANGER
If you call toast.remove
without argument, all the displayed toasts will be removed.