setState

fun setState(initialState: S): DynamicGUI<S>

Sets the current state of the DynamicGUI to the specified initial state.

Return

The current instance of DynamicGUI for method chaining.

Parameters

initialState

The initial state to set for the GUI.