title: Flutter returns "Instance of Future<int>" instead of expected value
body: <p>I have this code:</p>
  
  <pre><code>class SharedPreferencesHelper {
    static Future&lt;int&gt; getYear() async {
      final prefs = await SharedPreferences.getInstance();
      print("GET1");
      print(prefs.getInt("year"));
      return prefs.getInt("year");
    }
  }
  </code></pre>
  
  <p><code>print</code> above correctly outputs <code>2019</code> on <code>GET1</code> (I indeed set <code>prefs.setInt('year', 2019)</code>)</p>
  
  <pre><code>year = SharedPreferencesHelper.getYear();
  print("GET2");
  print(year);
  </code></pre>
  
  <p>But <code>print</code> above return <code>Instance of Future&lt;int&gt;</code> on <code>GET2</code>, but I expected <code>2019</code>.</p>
  
  <p>I've been checked the <code>awaits</code>/<code>async</code>, I kinda confused where do I am missing.</p>
  
  <p>I need to use the <code>2019</code> value to be used on <code>DateTime.parse()</code>.</p>
  
  <p>Please help, thanks.</p>