clone method
Clone the data.
If isDeep
is not set to true, the clone will be a shallow copy.
Implementation
RecordList clone([bool isDeep=false]){
RecordList list = cloneEmpty();
list.dataSet = _dataSet;
if(isDeep){
for(Record record in _records){
Record newRec = record.clone();
newRec.dataSet = _dataSet;
list.add(newRec);
}
}else{
list.addAll(this);
}
return list;
}