In my code in flutter App, although Jason has a value and is not empty, it gives a null error. What is the reason for this?
Error: _TypeError (type ‘Null’ is not a subtype of type ‘String’)
the Future is:
2
The key in the map is case sensitive.
Seems like your result is an array instead of map, which may cause json[‘question’] return null:
null
Click here to cancel reply.
2
Answers
The key in the map is case sensitive.
Seems like your result is an array instead of map, which may cause json[‘question’] return
null
: