发生异常。 RangeError(RangeError(索引):无效值:有效值范围为空:0)

时间:2019-06-13 00:13:50

标签: image google-maps flutter

Am I getting something wrong here please

 //To convert
    final decodedResponse = json.decode(response.body);
    //print(decodedResponse);

    final formattedAddress = decodedResponse['results'](**I KEEP GETTING THE ERROR HERE**)[0]['formatted_address'];
    final coords = decodedResponse['results'][0]['geometry']['location'];

0 个答案:

没有答案