title: Call a function from a class gives me an error
body: <p>I'm trying to run a function in another class. When I do that, I get an error message saying the following:</p>
  
  <blockquote>
    <p>'_makeGetRequest' must have a method body because 'Home' isn't
    abstract. Try making 'Home' abstract, or adding a body to
    '_makeGetRequest'.dart(concrete_class_with_abstract_member)</p>
  </blockquote>
  
  <p>Here's the code:</p>
  
  <pre><code>class Home extends StatelessWidget {
    _makeGetRequest(); // Error is here
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(title: Text('CRUD Bro')),
        body: Center(
          child: Text('My App'),
        ),
      );
    }
  }
  
  _makeGetRequest() async {
      print('hello');
  }
  </code></pre>
  
  <p>I tried making the <code>Home</code> class abstract, but the program doesn't work then. How can I call a function inside this class?</p>