mergePresentation method
Implementation
void mergePresentation(ProPresentation other) {
presentationName = other.presentationName.isNotEmpty ? other.presentationName : presentationName;
presentationPath = other.presentationPath.isNotEmpty ? other.presentationPath : presentationPath;
presentationSlideGroups = other.presentationSlideGroups;
slideQuality = other.slideQuality;
// reconnect slides and slide groups to this presentation
for (var slideGroup in presentationSlideGroups) {
slideGroup.presentation = this;
for (var slide in slideGroup.groupSlides) {
slide.group = slideGroup;
}
}
reComputeSlides();
}