title: Keep returning "Instance of 'Future<dynamic>" instead of String (Flutter)
body: <p>I've looked everywhere and found no solution. I'm wanting to return the result count from a query, yet I'm having troubles. Keep getting <strong>"Instance of 'Future" instead of String</strong></p>
  
  <p>I'm using the Singleton pattern.</p>
  
  <ul>
  <li>DB method (database.dart):</li>
  </ul>
  
  <pre><code>    Future&lt;int&gt; getUnCompletedTaskCount () async {
      final db = await database;
      var result = await db.rawQuery("SELECT * FROM Tasks WHERE isComplete = 0");
      int count = Sqflite.firstIntValue(result);
      return count;
    }
  </code></pre>
  
  <ul>
  <li>My method in main.dart:</li>
  </ul>
  
  <pre><code>    getResultCount () async {
      final value = await DBProvider.db.getUnCompletedTaskCount();
      return value;
    }
  </code></pre>
  
  <ul>
  <li>Calling the method by:</li>
  </ul>
  
  <pre><code>    getResultCount().toString()
  </code></pre>