getDataInBatch method

Future<List<RecordModel>> getDataInBatch(
  1. String collectionName,
  2. int batch,
  3. String sort
)

Implementation

Future <List<RecordModel>>  getDataInBatch(String collectionName,int batch,String sort)async{
  // alternatively you can also fetch all records at once via getFullList:
  List<RecordModel>? result;
  result = await client.collection(collectionName)
      .getFullList(
      batch: batch,
      sort: sort);
  return result;
}