getState

abstract fun getState(): S

Get current state.