Answers for "type 'List<dynamic>' is not a subtype of type 'List<Widget>'"

2

type 'List<dynamic>' is not a subtype of type 'List<Widget>'

snapshot.data.documents.map<Widget>((document) {
  return new ListTile(
    title: new Text(document['name']),
    subtitle: new Text("Class"),
  );
}).toList()
Posted by: Guest on September-18-2020

Code answers related to "type 'List<dynamic>' is not a subtype of type 'List<Widget>'"

Browse Popular Code Answers by Language