save

abstract suspend fun save(state: T?)

save function should persist the state to some place that outlives the lifespan of the store If null is passed to save, it must clean up the persisted state completely. You must adhere to this contract if you implement your own saver.