title: Compare todays date to a stored date in a SqfLite database
body: <p>I want to compare todays date with a stored date in a SqfLite database and do something if the date matches.</p>
  
  <p>My table:</p>
  
  <pre><code>Vara.fromJson(Map&lt;String, dynamic&gt; json){
      this.id = json[DatabaseCreator.id]; // int primary key
      this.varuNamn = json[DatabaseCreator.varuNamn]; //text
      this.utgangsDatum = json[DatabaseCreator.utgangsDatum]; //text
    }
  </code></pre>
  
  <p>My code so far:</p>
  
  <pre><code>Future getVaraDate() async {
      DateTime now = new DateTime.now();
      var date = now.toString().substring(0,10);
      final sql = '''Select * from ${DatabaseCreator.varuTable} where ${DatabaseCreator.utgangsDatum} == "$date" ''';
      List&lt;Map&gt; result = await db.rawQuery(sql);
      // What to do here?
  
  }
  </code></pre>
  
  <p>output: </p>
  
  <pre><code>I/flutter ( 8118): [{id: 36000291452, varuNamn: hej, utgangsDatum: 2019-05-19, isDeleted: 0}]
  </code></pre>
  
  <p>I'm stuck, any help would be appreciated!</p>