provideState

Convenience function to create a simple StateProvider with a value.

Return

A StateProvider that provides the state.

Parameters

State

The type of the state.

state

The state to provide.


Convenience function to create a lazily evaluated StateProvider.

Return

A StateProvider that provides the state returned by block.

Parameters

State

The type of the state.

block

The block that will be called to provide the state.