list method

Future<List<Snippet>> list({
  1. int? page,
  2. int? perPage,
})

Implementation

Future<List<Snippet>> list({int? page, int? perPage}) async {
  final uri = _project.buildUri(['snippets'], page: page, perPage: perPage);

  final jsonList = _responseToList(await _gitLab.request(uri));

  return jsonList.map((json) => new Snippet.fromJson(json)).toList();
}