fromRecordList method

RecordList fromRecordList(
  1. RecordList? list
)

Copies the value of the specified RecordList to this RecordList.

Implementation

RecordList fromRecordList(RecordList? list){
  if(list == null){
    return this;
  }
  list.forEach(
    (value){
      Record rec = createRecord();
      rec.fromRecord(value);
      add(rec);
    }
  );
  return this;
}