when<TResult extends Object?> method

TResult when<TResult extends Object?>(
  1. TResult callback(
    1. List<UpdatedBook> updates,
    2. int? total,
    3. int page,
    4. int pageSize,
    )
)

Destructure the feed using the original four-field callback. Access next directly for cursor pagination.

Implementation

TResult when<TResult extends Object?>(
  TResult Function(
    List<UpdatedBook> updates,
    int? total,
    int page,
    int pageSize,
  )
  callback,
) => callback(updates, total, page, pageSize);