show Toast
fun MutableState<KwikToastState>.showToast(message: String, type: KwikToastType = KwikToastType.NEUTRAL, duration: Long = 4000, backgroundColor: Color = Color.Unspecified)
Function to show a toast message.
Parameters
message
: The message to display.
type
: The type of toast to display. Can be KwikToastType.NEUTRAL, KwikToastType.WARNING, KwikToastType.SUCCESS, KwikToastType.ERROR. Default is KwikToastType.NEUTRAL, which uses the primary color from MaterialTheme.colorScheme.
duration
: The duration to display the toast. Default is 4 seconds.