Problem constructor
const
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,
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;