title: Flutter MVC: Where to put requests
body: <p>I would like to apply a MVC pattern to my flutter project.</p>
  <p>Model - some classes which contain data<br>
  View - everything with UI<br>
  Controller - some logic components like incrementing a value or something</p>
  <p>Where would I store requests to the backend like the following?:</p>
  <pre><code>Future&lt;String&gt; attemptLogIn(String username, String password) async {
      var res = await http.post(Uri.parse(SERVER_IP + '/login'),
          body: {&quot;username&quot;: username, &quot;password&quot;: password});
      if (res.statusCode == 200) return res.body;
      return &quot;&quot;;
    }
  </code></pre>