fayeed/dash_chat

The argument type 'Map<String, dynamic> Function()' can't be assigned to the parameter type 'Map<dynamic, dynamic>'.

mdridley opened this issue · 2 comments

Describe the bug
Trying to get the example app working. Not sure how to get around this part though.

Getting it on this line for i.data:
var messages = items.map((i) => ChatMessage.fromJson(i.data)).toList();

is i a snapshot? you might need to do i.data() as it is a function that must be called

I am using the code directly from GitHub (and the example tab).

Thanks, that fixed that, but now hitting a bunch of runtime errors.