FPaginationController constructor

FPaginationController({
  1. required int pages,
  2. int initialPage = 0,
  3. bool showEdges = true,
  4. int siblings = 1,
})

Creates a FPaginationController.

Contract:

Implementation

FPaginationController({required this.pages, int initialPage = 0, this.showEdges = true, this.siblings = 1})
  : assert(0 < pages, 'The total length of pages should be more than 0, but is $pages.'),
    assert(0 <= siblings, 'The siblingLength should be non-negative, but is $siblings'),
    assert(
      0 <= initialPage && initialPage < pages,
      'The initial page must be greater than or equal to 0 and less than pages.',
    ),
    _page = initialPage;