getInboxNotifications method

Future<InboxNotificationPageData?> getInboxNotifications(
  1. String userId, {
  2. int? limit,
  3. String? cursor,
  4. String? topicCode,
  5. bool unreadOnly = false,
})

One page of the user's inbox, newest first. Returns null on error.

limit 1 to 50, null for the server default (20). cursor nextCursor of the previous page, null for the first page. topicCode only notifications of this topic, null for all.

Implementation

Future<InboxNotificationPageData?> getInboxNotifications(
  String userId, {
  int? limit,
  String? cursor,
  String? topicCode,
  bool unreadOnly = false,
}) async {
  return FlutterLinkIdMmpPlatform.instance.getInboxNotifications(
      userId: userId,
      limit: limit,
      cursor: cursor,
      topicCode: topicCode,
      unreadOnly: unreadOnly);
}