currentPresentation property

ProPresentation? currentPresentation

Implementation

ProPresentation? get currentPresentation =>
    _currentPresentationPath == null ? null : presentationsByPath[_currentPresentationPath];
void currentPresentation=(ProPresentation? p)

Implementation

set currentPresentation(ProPresentation? p) {
  if (p == null) _currentPresentationPath = null;
  if (p!.presentationPath.isEmpty) return;

  if (presentationsByPath.containsKey(p.presentationPath)) {
    presentationsByPath[p.presentationPath]!.mergePresentation(p);
  } else {
    presentationsByPath[p.presentationPath] = p;
  }

  _currentPresentationPath = p.presentationPath;
  updateWith('presentation');
}