skip to Main Content

Flutter – Expected an identifier and Expected to find ')' error

I am beginner coder and i dont understand how to resolve this error Future<http.Response> fetchData(String query) async { return http.post( Uri.parse('https://laravelsyd-fypfinalver.herokuapp.com/getBusService'), headers: <String, String>{ 'Content-Type': 'application/json; charset=UTF-8', }, body: { jsonEncode({'bus_stop_id': busCode}) }, if (response.statusCode == 200) { final List<dynamic>…

VIEW QUESTION
Back To Top
Search