getPagedValue method

  1. @override
Future<List<NotificationDTO>> getPagedValue()
override

Subclasses must return a single page containing a list of T values.

It is up to subclasses to implement its own page size and offset representation.

Implementation

@override
Future<List<NotificationDTO>> getPagedValue() {
  if (api == null) return Future.value([]);

  return api!
      .kemApiV3NotificationsGet(limit: _pageSize, offset: offset)
      .then(responseToValue);
}