DataPagerDelegate class mixin
A delegate that provides the row count details and method to listen the page navigation in SfDataPager.
The following code initializes the data source and controller.
finalList<Employee>paginatedDataTable=<Employee>[];
The following code example shows how to initialize the DataPagerDelegate.
class PaginatedDataGridSource extends DataPagerDelegate{
@override
Future<bool> handlePageChange(int oldPageIndex, int newPageIndex) async {
_paginatedData = paginatedDataTable
.getRange(startRowIndex, endRowIndex )
.toList(growable: false);
notifyListeners();
return true;
}
}
- Implementers
Constructors
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
-
handlePageChange(
int oldPageIndex, int newPageIndex) → Future< bool> - Called when the page is navigated.
-
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