FPaginationManagedControl constructor

const FPaginationManagedControl({
  1. FPaginationController? controller,
  2. int? initial,
  3. int? pages,
  4. int? siblings,
  5. bool? showEdges,
  6. ValueChanged<int>? onChange,
})

Creates a FPaginationControl.

Implementation

const new({this.controller, this.initial, this.pages, this.siblings, this.showEdges, this.onChange})
  : assert(
      controller == null || initial == null,
      'Cannot provide both controller and initial page. Pass initial page to the controller.',
    ),
    assert(
      controller == null || pages == null,
      'Cannot provide both controller and pages. Pass pages to the controller.',
    ),
    assert(
      controller == null || siblings == null,
      'Cannot provide both controller and siblings. Pass siblings to the controller.',
    ),
    assert(
      controller == null || showEdges == null,
      'Cannot provide both controller and showEdges. Pass showEdges to the controller.',
    ),
    super._();