CallbackSaver

fun <T> CallbackSaver(delegate: Saver<T>, onSave: suspend (T?) -> Unit = {}, onRestore: suspend (T?) -> Unit = {}): Saver<T>

A Saver implementation that adds additional behavior to the given delegate's Saver.save and Saver.restore methods.

See also