ToastMessage

@Composable
fun ReversiScope.ToastMessage(error: ReversiException?, modifier: Modifier = Modifier, setError: (Exception?, ErrorType?) -> Unit)

Composable that shows a toast message for errors. The message is displayed for 2 seconds before being cleared.

Parameters

error

Current error to show.

modifier

Optional modifier for styling the composable.

setError

Callback to clear the error after display.