ButtonModel

data class ButtonModel @JvmOverloads constructor(val text: String? = null, val clickListener: AppBarModel.OnClickListener? = null, val contentDescription: String? = null)

Data class for button properties of an AppBar suggestion.

Parameters

text

The text to be displayed on the button.

clickListener

The listener to be invoked when the button is clicked.

contentDescription

The content description for the button, used for accessibility.

Constructors

Link copied to clipboard
constructor(text: String? = null, clickListener: AppBarModel.OnClickListener? = null, contentDescription: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val text: String? = null