PaginationProps class abstract final

Page controls for a list's pagination (found by its name, controller): first, previous, page numbers with ellipses (1 … 4 5 6 … 16), next, last, a page size select and a summary. Choosing a page fires the node's changed reactions with the page as ${result}.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

pageItems({required int page, required int pageCount, int siblingCount = 1, int boundaryCount = 1}) → List<int?>
The page numbers to show for page of pageCount, null where an ellipsis goes: page 5 of 16 with one sibling and one boundary page is [1, null, 4, 5, 6, null, 16]. An ellipsis never stands for one page.

Constants

activeColor → const PropDef<Color?>
The current page's fill. Null: the theme's primary.
activeTextColor → const PropDef<Color?>
The current page's label. Null: what reads on activeColor (the theme's onPrimary).
alignment → const PropDef<WrapAlignment>
How the parts are placed along the node (as a Wrap's alignment).
borderColor → const PropDef<Color?>
A button's outline; transparent for none. Null: the theme's hairline (outlineVariant).
borderWidth → const PropDef<double>
boundaryCount → const PropDef<int>
Page numbers always shown at each end.
buttonColor → const PropDef<Color?>
buttonSize → const PropDef<double>
The least width and height of a button.
controller → const PropDef<String>
The Pagination.name of the list this shows and moves (an expression).
cornerRadius → const PropDef<double>
disabledOpacity → const PropDef<double>
A button that can't be pressed (previous on page 1).
enabled → const PropDef<bool>
firstLabel → const PropDef<String>
fontSize → const PropDef<double>
fontWeight → const PropDef<int>
lastLabel → const PropDef<String>
nextLabel → const PropDef<String>
pageSizeLabel → const PropDef<String>
previousLabel → const PropDef<String>
showFirstLast → const PropDef<bool>
showPageNumbers → const PropDef<bool>
showPageSize → const PropDef<bool>
A page size select, offering the pagination's pageSizeOptions.
showPrevNext → const PropDef<bool>
showSummary → const PropDef<bool>
siblingCount → const PropDef<int>
Page numbers on each side of the current one before an ellipsis.
spacing → const PropDef<double>
spec → const WidgetSpec
summaryText → const PropDef<String>
{from}, {to}, {total}, {page}, {pageCount} are replaced; an unknown total shows as "many".
textColor → const PropDef<Color?>
Null: the theme's ink (onSurface).