Toggle

data class Toggle(val on: Boolean, val busy: Boolean = false, val detail: String? = null) : BackupLaneState

An on/off capability rendered as a Switch — unambiguous "this is off, flip it on" (vs a label that read as already-enabled). on reflects state, busy shows a spinner while turning on, detail surfaces an error.

Constructors

Link copied to clipboard
constructor(on: Boolean, busy: Boolean = false, detail: String? = null)

Properties

Link copied to clipboard
val busy: Boolean = false
Link copied to clipboard
val detail: String? = null
Link copied to clipboard
val on: Boolean