getNewFields method

List<NUIDBField> getNewFields(
  1. NUIDBEntityTracker tracker
)

Implementation

List<NUIDBField> getNewFields(NUIDBEntityTracker tracker){
  final changes = structureChanges(tracker);
  final newFields = List<NUIDBField>();

  for(String key in changes.keys){
    final value = changes[key];

    if(match(value, _ADDED)){
      for(NUIDBField field in fields()){
        if(match(field.name, key)){
          newFields.add(field);
          break;
        }
      }
    }
  }
  return newFields;
}