getValue

operator fun <S> <Error class: unknown class><S>.getValue(thisRef: Any?, property: KProperty<*>): S?

(Kotlin-specific) Allows the group state object to be used as a delegate. Will be null if it does not exist.

For example:

groupedDataset.mapGroupsWithState(GroupStateTimeout.NoTimeout()) { key, values, state: GroupState<Int> ->
var s by state
...
}