Created
December 13, 2023 14:04
-
-
Save teegarcs/31b357f067378b2cc0df83a78daaaf81 to your computer and use it in GitHub Desktop.
Generic Lazy Item base class.
This file contains 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
abstract class GenericLazyItem<Intent : Any> { | |
open fun itemKey(): Int = hashCode() | |
open fun sectionMatcher(): Int? = null | |
@Composable | |
open fun BuildHeaderItem( | |
processIntent: (Intent) -> Unit | |
) { | |
//by default no header. | |
} | |
@Composable | |
abstract fun BuildItem( | |
processIntent: (Intent) -> Unit | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment