listNotifications method

Stream<Notification> listNotifications(
  1. {bool all = false,
  2. bool participating = false}
)

Lists all notifications for the current user.

API docs: https://developer.github.com/v3/activity/notifications/#list-your-notifications

Implementation

Stream<Notification> listNotifications(
    {bool all = false, bool participating = false}) {
  return PaginationHelper(github).objects(
      'GET', '/notifications', (dynamic i) => Notification.fromJson(i),
      params: {'all': all, 'participating': participating});
}