TextFieldState.Saver


Saves and restores a TextFieldState for rememberSaveable.

Summary

Public functions

open TextFieldState?
restore(value: Any)

Convert the restored value back to the original Class.

Cmn
open Any?

Convert the value into a saveable one.

Cmn

Public functions

restore

open fun restore(value: Any): TextFieldState?

Convert the restored value back to the original Class. If null is returned the value will not be restored and would be initialized again instead.

open fun SaverScope.save(value: TextFieldState): Any?

Convert the value into a saveable one. If null is returned the value will not be saved.