fetchNextPage static method

Future<List<NetmeraPushInbox>> fetchNextPage()

Implementation

static Future<List<NetmeraPushInbox>> fetchNextPage() async {
  return await _platform.invokeMethod(_FETCH_NEXT_PAGE).then((receivedJson) {
    List<NetmeraPushInbox> inboxList = List.empty(growable: true);
    receivedJson.forEach((item) {
      inboxList.add(NetmeraPushInbox.fromJson(item));
    });
    return inboxList;
  });
}