showToast

suspend fun showToast(message: String, icon: Painter? = null, iconContentDescription: String? = null, iconTint: Color? = null, actionLabel: String? = null, duration: ToastDuration = if (actionLabel == null) ToastDuration.SHORT else ToastDuration.LONG): ToastResult

Shows message and suspends until the toast is dismissed.

Parameters

duration

defaults to ToastDuration.SHORT without an action and ToastDuration.LONG with one.