getPagingData method

Future<PageListData<List<AmityPost>, String>> getPagingData({
  1. String? token,
  2. int? limit,
})

Implementation

Future<PageListData<List<AmityPost>, String>> getPagingData(
    {String? token, int? limit}) async {
  GetGlobalFeedRequest request = GetGlobalFeedRequest();

  if (token != null) {
    request.token = token;
  }
  if (limit != null) {
    request.limit = limit;
  }

  final data = await _usecase.get(request);

  return data;
}