title: Flutter - Check if an index exists in List
body: <p>Let's say I have a list:</p>
  
  <pre class="lang-dart prettyprint-override"><code>List&lt;int&gt; numbers = [1, 2, 3, 4, 5,];
  </code></pre>
  
  <p>How can I check if object in the list exists at <strong>certain index</strong>??</p>
  
  <p>E.g.</p>
  
  <pre class="lang-dart prettyprint-override"><code>if (numbers[6] != null) {
    print('Exists');
  }
  </code></pre>
  
  <p>I was hoping I can do smth like that, but apparently it's not working.</p>