CursorPages<T>.fromCursorPaging constructor

CursorPages<T>.fromCursorPaging(
  1. SpotifyApiBase api,
  2. CursorPaging<T> paging,
  3. ParserFunction<T> pageParser, [
  4. String? pageKey,
  5. ParserFunction<Object>? pageContainerMapper,
])

Implementation

CursorPages.fromCursorPaging(
    SpotifyApiBase api, CursorPaging<T> paging, ParserFunction<T> pageParser,
    [String? pageKey, ParserFunction<Object>? pageContainerMapper])
    : super(api, Uri.parse(paging.href!).path.substring(1), pageParser,
          pageKey, pageContainerMapper) {
  _bufferedPages.add(CursorPage<T>(paging, _pageParser));
}