WarcraftPagination class

Warcraft-themed pagination with ellipsis and navigation buttons.

Inheritance

Constructors

WarcraftPagination({Key? key, required int currentPage, required int pageCount, required ValueChanged<int> onPageChanged, int maxVisiblePages = 3, String previousLabel = 'Previous', String nextLabel = 'Next', String semanticLabel = 'Pagination', WarcraftPageSemanticLabelBuilder? pageSemanticLabelBuilder, WarcraftPageSemanticLabelBuilder? currentPageSemanticLabelBuilder, String ellipsisSemanticLabel = 'More pages'})
Creates a WarcraftPagination.
const

Properties

currentPage int
The currently selected page, 1-based.
final
currentPageSemanticLabelBuilder WarcraftPageSemanticLabelBuilder?
Optional localizable accessible-label builder for the current page.
final
ellipsisSemanticLabel String
Localizable accessible label for each collapsed page range.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxVisiblePages int
The maximum number of page buttons shown at once around currentPage. Pages that fall outside this window are collapsed into an ellipsis indicator on the corresponding side instead of being rendered individually.
final
nextLabel String
Localizable label for the next-page action.
final
onPageChanged ValueChanged<int>
Called with the new page number when a page button, or the previous/next button, is pressed.
final
pageCount int
The total number of pages available.
final
pageSemanticLabelBuilder WarcraftPageSemanticLabelBuilder?
Optional localizable accessible-label builder for inactive page buttons.
final
previousLabel String
Localizable label for the previous-page action.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String
Accessible label for the pagination navigation region.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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