title: Instance of 'Future<dynamic>' . I am getting this error and unable to load information
body: <pre class="lang-dart prettyprint-override"><code> final String apiUrl = 'https://api.covid19api.com/summary';
         Future globaldata()  async{
  
       var res = await http.get(Uri.parse(apiUrl));
       Map s = await jsonDecode(res.body);
          return s['Global']['NewConfirmed'];
  }
  //....
  
  Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text(&quot;global cases&quot;),
          centerTitle: true,
        ),
        body:Container(
  
          child: FutureBuilder(
            future: globaldata(),
            builder: (context, snapshot){
  
              if(snapshot.data != null){
                print(globaldata());
                return Text(globaldata().toString());
              }else{
                return Text(&quot;loading ...&quot;);
              }
            },
          ),
  
  
        ),
      );
    }
  }
  
  </code></pre>
  <blockquote>
  <p>I am getting error of Instance of 'future'</p>
  </blockquote>