Search code examples
flutterdartnull

Why does it give null error when the value is there


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')

enter image description here

the Future is: enter image description here


Solution

  • The key in the map is case sensitive.