List<dynamic> is not a subtype of List<Option>
问题 I have a Cloud Firebase database with a questions collection. Each question has a list of map options . I'm using Flutter and have the following classes for question and option : class Question { final String text; final List<Option> options; // I have tried changing this to List<dynamic> but it doesn't help final String reference; Question(this.text, this.options, this.reference); Question.fromMap(Map<String, dynamic> map, {this.reference}) : text = map['text'], options = map['options']; //