SnackBarComponentConfiguration

data class SnackBarComponentConfiguration(val message: String = "", val actionLabel: String? = null, val duration: ERROR CLASS: Symbol not found for SnackbarDuration = SnackbarDuration.Short)

Configuration data for displaying a Snackbar, encapsulating message text, optional action label, and display duration.

Passed in-memory via kotlinx.coroutines.flow.SharedFlow — no serialization needed.

Constructors

Link copied to clipboard
constructor(message: String = "", actionLabel: String? = null, duration: ERROR CLASS: Symbol not found for SnackbarDuration = SnackbarDuration.Short)

Properties

Link copied to clipboard

Optional label for the snackbar action button; null means no action.

Link copied to clipboard
val duration: ERROR CLASS: Symbol not found for SnackbarDuration

How long the snackbar should be visible; defaults to SnackbarDuration.Short.

Link copied to clipboard

The text to display in the snackbar body.