Companion

Type-specific state factories.

Functions

Link copied to clipboard
inline operator fun <E : Enum<E>> invoke(initialValue: E, noinline toString: (E) -> String = { value -> value.name }): CycleButtonState<E>

Creates state containing every constant of E in declaration order.