getThread method

Future<Notification> getThread(
  1. String threadId
)

Fetches the specified notification thread.

API docs: https://developer.github.com/v3/activity/notifications/#view-a-single-thread

Implementation

Future<Notification> getThread(String threadId) => github.getJSON(
  '/notification/threads/$threadId',
  statusCode: StatusCodes.OK,
  convert: Notification.fromJson,
);