title: Cannot use list in lazycolumn in kotlin
body: <p>I am using LazyColumn in project. When I am passing the list it giving me error. Can someone guide me what is the error?</p>
  <p><strong><a href="https://github.com/vivek-modi/SportsResult/blob/master/app/src/main/java/com/vivek/sportsresult/ui/screen/ResultScreen.kt" rel="nofollow noreferrer">ResultScreen.kt</a></strong></p>
  <pre><code>@Composable
  fun ResultScreen(nearestResultList: List&lt;NearestResult&gt;?) {
      LazyColumn(
          Modifier
              .fillMaxSize()
              .background(getBackgroundColor())
      ) {
          items(nearestResultList) { nearestResult -&gt;
              Text(text = &quot;$nearestResult&quot;)
          }
      }
  }
  </code></pre>
  <p>Error</p>
  <pre><code>Type mismatch.
  Required:
  Int
  Found:
  List&lt;NearestResult&gt;?
  </code></pre>
  <p><a href="https://i.stack.imgur.com/wMclX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wMclX.png" alt="enter image description here" /></a></p>
  <p>UPDATE</p>
  <p><a href="https://i.stack.imgur.com/xvEqw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xvEqw.png" alt="enter image description here" /></a></p>