getRows abstract method

Future<AsyncRowsResponse> getRows(
  1. int startIndex,
  2. int count
)

Override this method to allow the data source asynchronously fetch count data beginning from start (e.g. from a server) and convert them to DataRow/DataRow2 entities consumed by AsyncPaginatedDataTable2 widget. Note that besides rows this method is also supposed to return the total number of available rows (both values are packed into AsyncRowsResponse instance returned from this method)

Implementation

Future<AsyncRowsResponse> getRows(int startIndex, int count);