FPaginationController constructor

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

Creates a FPaginationController.

Contract:

Implementation

FPaginationController({required this.pages, int page = 0, this.siblings = 1, this.showEdges = true})
  : assert(0 < pages, 'pages ($pages) should be > 0'),
    assert(0 <= siblings, 'siblings ($siblings) >= 0'),
    assert(0 <= page && page < pages, 'initialPage ($page) must be between 0 and pages ($pages), exclusive.'),
    super(page);