According to this SO answer, we can make a reusable LazyColumn
composable by using generics. But, if we need to use the item's id
value as the key, using T.id
throws an unresolved reference
error. How can we specify the id
for key values if using generics in the LazyColumn
?
Asked
Active
Viewed 183 times
1

Raj Narayanan
- 2,443
- 4
- 24
- 43