Answers for "The operator '[]' isn't defined for the type 'AsyncSnapshot<dynamic>'. flutter"

0

The operator '

FutureBuilder(future:getData(),
 //getdata is the function Future you already make
  builder: (BuildContext context, AsyncSnapshot<dynamic>  snapshot) {

  return Container(child: Text(snapshot.data[0]['title']),);}
  //use . data to acces information
Posted by: Guest on January-01-1970

Code answers related to "The operator '[]' isn't defined for the type 'AsyncSnapshot<dynamic>'. flutter"

Browse Popular Code Answers by Language