Does not receive data from API by asynchronous function FLUTTER
I want to receive data from an API and for that I created a SERVICE: class ApiService { Future<List<dynamic>> getData() async { try { var response = await http.get(Uri.parse(Config.apiURL)); debugPrint('Response code: ${response.statusCode}'); if (response.statusCode == 200) { List<dynamic> data=jsonDecode(response.body) as…