getDataInBatch method
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;
}