title: How to check if Sqflite DB contains a specific id or not? -FLUTTER
body: <p>I want to check the DB if IDs Column contains a specific ID or not? 
  I wrote something like this but this is WRONG as h:
   dbHelper.ColID is a String 
  posts is a list ; the post model has an int ID ; </p>
  
  <pre><code>for(int i = 0 ; i&lt;pageCount ; i++) {
     for(int j=0 ; j&lt;i; j++) {
       if (dbHelper.ColID != posts[i].id){
           dbHelper.insertPost(posts[0]) ;
       }
     }
  </code></pre>