Split Text Saver

The SplitTextSaver custom saver allow the SplitTextState to save and restore correctly the values for the SplitText component

Author

N7ghtm4r3 - Tecknobit

Functions

Link copied to clipboard
open override fun restore(value: Pair<Int, List<String>>): SplitTextState

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.

Link copied to clipboard
open override fun SaverScope.save(value: SplitTextState): Pair<Int, List<String>>

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