get method

Future<Snippet> get(
  1. int id
)

If you want to get the content, use content

Implementation

Future<Snippet> get(int id) async {
  final uri = _project.buildUri(['snippets', '$id']);

  final json = await _gitLab.request(uri) as Map;

  return new Snippet.fromJson(json);
}