Button

data class Button(val text: String? = null, val icon: Int? = null, val action: () -> Unit?)

Class representing the custom message action

Constructors

Link copied to clipboard
constructor(text: String? = null, icon: Int? = null, action: () -> Unit?)

Properties

Link copied to clipboard
val action: () -> Unit?

(Function0)? optional button action

Link copied to clipboard
val icon: Int? = null

Int? optional button icon

Link copied to clipboard
val text: String? = null

String? optional button text