DataPagerDelegate class Null safety

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

DataPagerDelegate()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

handlePageChange(int oldPageIndex, int newPageIndex) Future<bool>
Called when the page is navigated. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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