remember Raster Array Source State
inline fun rememberRasterArraySourceState(key: String? = null, sourceId: String = remember {
generateRandomSourceId("raster-array")
}, crossinline init: RasterArraySourceState.() -> Unit = {}): RasterArraySourceState
Create and rememberSaveable a RasterArraySourceState using RasterArraySourceState.Saver. init will be called when the RasterArraySourceState is first created to configure its initial state.
Parameters
key
An optional key to be used as a key for the saved value. If not provided we use the automatically generated by the Compose runtime which is unique for the every exact code location in the composition tree.
source Id
The optional sourceId for the source state, by default, a random source ID will be used.
init
A function initialise this RasterArraySourceState.