skip to Main Content

Firebase – Flutter: A value of type 'Stream<List<object>>' can't be returned from the function 'getCheckInHistory' because it has a return type of 'List<object>'

I'm getting error in returning the response. I want the type to be List<ObjectModel> but it is returning Stream<List<ObjectModel>> I tried response as List<ObjectModel> but it is not solving the error. Please help List<ZohoModel> getCheckInHistory() { var response = FirebaseFirestore.instance…

VIEW QUESTION
Back To Top
Search