getGitignoreTemplate method

Future<GitignoreTemplate> getGitignoreTemplate(
  1. String name
)

Gets a .gitignore template by name. All template names can be fetched using listGitignoreTemplates.

API docs: https://developer.github.com/v3/gitignore/#get-a-single-template

Implementation

Future<GitignoreTemplate> getGitignoreTemplate(String name) => github.getJSON(
  '/gitignore/templates/$name',
  convert: GitignoreTemplate.fromJson,
);