getBlob method

Future<GitBlob> getBlob(
  1. RepositorySlug slug,
  2. String? sha
)

Fetches a blob from slug for a given sha.

API docs: https://developer.github.com/v3/git/blobs/#get-a-blob

Implementation

Future<GitBlob> getBlob(RepositorySlug slug, String? sha) =>
    github.getJSON('/repos/${slug.fullName}/git/blobs/$sha',
        convert: (dynamic i) => GitBlob.fromJson(i),
        statusCode: StatusCodes.OK);