toMap method

Map<String, dynamic> toMap()

This method returns a Map<String,String> object of the current state of the question cards. This format is useful for writing to a database eg Firestore.

Implementation

Map<String, dynamic> toMap() {
  var questionProvider =
      Provider.of<QuestionProvider>(context, listen: false);
  return questionProvider.toMap();
}