toState

fun <T, R : T> Frame<R>.toState(start: T = when { sceneScope.states.isNotEmpty() -> sceneScope.states.first() else -> error("implicit conversion to state requires non-empty states") }, end: T = when { sceneScope.states.isNotEmpty() -> sceneScope.states.last() else -> error("implicit conversion to state requires non-empty states") }): T(source)


fun <T> Frame<T>.toState(start: T, end: T): T(source)

Converts the Frame of type T to just a value of type T; where start is the default representation for Frame.Start, and end is the default representation for Frame.End.