I have tried to get this code running but i keep getting the same error. i am really struggling with this and would appreciate your help... i am new to dart and Flutter. The idea of the function is this:
write a function in dart called checkDate that returns a boolean variable. The function should accept the variables called "dateToCheck" which is a datetime, also authUserID which is a string and also authUserFriends which is a list of document references. alle three variables are predefined and given from outside of the function! Query the firebase collection called "posts" and only return true if you manage to find at least one document that fullfills the following: 1, the posts "date" is equal to dateToCheck. 2, the "createdby_ref" is not equal to autUserID. 3, the "createdby_ref" is in the authUserFriends.