Reputation: 49
Upvotes: 1
Views: 1290
Reputation: 1200
The collection Quiz is expecting a type Map<String, dynamic> and you are setting the quizData as Map<dynamic, dynamic>.
For the problem to be solved you need to define the quizData in the expected format. Look at the code change below:
Future<void> addQuizData(Map<String, dynamic> quizData, String quizId)
Upvotes: 1