Created
December 7, 2023 07:41
-
-
Save mohanmanu484/94bfcd8eb8cfbd7b877ee46ff4273413 to your computer and use it in GitHub Desktop.
CheckBoxStateSaver
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 = Saver<CheckBoxState, Boolean>( | |
| save = { | |
| it.isSelected | |
| }, | |
| restore = { isSelected-> | |
| CheckBoxState(isSelected = isSelected) | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment