I have a firestore database set up with an Array of strings. In my code I have this:
factory Item.fromMap(Map<String, dynamic> map) {
return Item(
name: map['name'],
imageUrls: map['imageUrls'];
imageUrls is a List of Strings. I googled how to handle Lists, but I think it should be able to handle it like this? I get this error:
Expected a value of type List<String>, but got one of type List<dynamic>
Thank you for any input