Problem constructor

const Problem({
  1. required double acRate,
  2. required DifficultyEnum difficulty,
  3. double? freqBar,
  4. required String frontendQuestionId,
  5. required bool isFavor,
  6. required bool paidOnly,
  7. String? status,
  8. required String questionId,
  9. required String title,
  10. required String titleSlug,
  11. @JsonKey(fromJson: ProblemStatsConverter.fromJson, toJson: ProblemStatsConverter.toJson) required ProblemStats stats,
  12. required List<TopicTag> topicTags,
})

Implementation

const factory Problem({
  required double acRate,
  required DifficultyEnum difficulty,
  double? freqBar,
  required String frontendQuestionId,
  required bool isFavor,
  required bool paidOnly,
  String? status,
  required String questionId,
  required String title,
  required String titleSlug,
  @JsonKey(
    fromJson: ProblemStatsConverter.fromJson,
    toJson: ProblemStatsConverter.toJson,
  )
  required ProblemStats stats,
  required List<TopicTag> topicTags,
}) = _Problem;