Created
January 2, 2024 09:37
-
-
Save mohanmanu484/646690f99aa7cb332b0c18fb699af814 to your computer and use it in GitHub Desktop.
Checkbox custom state saver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val CheckBoxStateSaver = listSaver<CheckBoxState, Any>( | |
| save = { | |
| listOf<Any>(it.isSelected,it.name) | |
| }, | |
| restore = { data-> | |
| CheckBoxState(isSelected = data[0] as Boolean,data[1] as String) | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment