DataPage<T> constructor Null safety

DataPage<T>(
  1. List<T> data,
  2. int total
)

Creates a new instance of data page and assigns its values.

  • data a list of items from the retrieved page.
  • total (optional) .