```dart
 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("global cases"),
        centerTitle: true,
      ),
      body:Container(

        child: FutureBuilder(
          future: globaldata(),
          builder: (context, snapshot){

            if(snapshot.data != null){
              print(globaldata());
              return Text(globaldata().toString());
            }else{
              return Text("loading ...");
            }
          },
        ),

      ),
    );
  }
}

```

> 
> I am getting error of Instance of 'future'
> 
> 
>