Page constructor

const Page({
  1. int number = 0,
  2. required int size,
})

Creates a Page object. number - zero based page index. size - the size of the page to be returned.

Implementation

const Page({
  this.number = 0,
  required this.size,
})  : assert(number >= 0, 'Page index must not be less than zero'),
      assert(size >= 1, 'Page size must not be less than one');