withState

open override fun withState(state: S): MaterializedSnapshot<S>

Creates a new MaterializedSnapshot with the specified state.

Return

A new MaterializedSnapshot with the updated state.

Parameters

state

The new state data for the snapshot.