structureChanged method
Implementation
bool structureChanged(NUIDatabaseTracker tracker){
final changes = structureChanges(tracker);
bool hasEntityRemoved = false;
bool hasEntityAdded = false;
bool hasEntityRecreated = false;
bool hasEntityUpdated = false;
for(String value in changes.values){
if(match(value, ACTION_CREATE)){
hasEntityAdded = true;
}
if(match(value, ACTION_UPDATE)){
hasEntityUpdated = true;
}
if(match(value, ACTION_RECREATE_PATCH) || match(value, ACTION_RECREATE)){
hasEntityRecreated = true;
}
if(match(value, ACTION_REMOVE)){
hasEntityRemoved = true;
}
}
return hasEntityRemoved || hasEntityUpdated || hasEntityAdded || hasEntityRecreated;
}