title: Dart/Flutter async function return -Instance of '_Future<dynamic>'
body: <h2>I am using async Function on Dart/Flutter. I want to return a string value from function.</h2>
  <pre><code>Map dataLoginEmployee = {
    'email': employee.getEmail(),
    'password': employee.getPassword(),
  };
  
  String bodyLoginEmployee = json.encode(dataLoginEmployee);
  
  postDataLoginEmployee() async {
        final response = await http.post(
          Uri.parse(url),
          headers: {&quot;Content-Type&quot;: &quot;application/json&quot;},
          body: bodyLoginEmployee,
        );
      
        return response.body;
      }
  </code></pre>
  <p>return response.body 's return:
  Instance of '_Future'</p>
  <p><a href="https://i.stack.imgur.com/wxYPe.png" rel="nofollow noreferrer">enter image description here</a></p>
  <blockquote>
  <p>I am try a lot of method but they are didn't work.</p>
  </blockquote>
  <ul>
  <li>I try use getter setter.</li>
  <li>I try Future&lt; String &gt;, void, static, dynamic.</li>
  </ul>
  <p>Please help me in a any way, Thanks.</p>