Close Method Companion
This class defines helpful methods to either close all currently open (closeAllToasts) or the last created toast (closeLastToast) which can be called via the companion objects of both ToastComponent and AlertToastComponent.
Example:
clickButton {
variant { outline }
text("closeAll")
} handledBy ToastComponent.closeAllToasts()Content copied to clipboard