getAllProblems method

Future<ProblemList> getAllProblems({
  1. required int offset,
  2. required int pageSize,
})

Implementation

Future<ProblemList> getAllProblems({required int offset, required int pageSize}) async {
  final data = await makeGraphQLRequest(getGraphQLPayloadAllProblems(offset: offset, pageSize: pageSize));
  return ProblemList.fromJson(data['data']['problemsetQuestionList']);
}