listEmojis method

Future<Map<String, String>> listEmojis()

Fetches all emojis available on GitHub Returns a map of the name to a url of the image.

API docs: https://developer.github.com/v3/emojis/

Implementation

Future<Map<String, String>> listEmojis() {
  final r = github.getJSON<Map, Map<String, String>>(
    '/emojis',
    statusCode: StatusCodes.OK,
    convert: (Map json) => json.cast<String, String>(),
  );
  return r;
}