view property

DVStudioPageView? get view

Each page as its route builds it -- the page, its layouts and its shell -- with a document Studio is editing in place of the page's body when one is given. The generated dartvelPagePreview is one, so a preview that is one serves as both.

Implementation

DVStudioPageView? get view {
  final DVStudioPageView? given = _view;
  if (given != null) return given;
  final Widget? Function(String path)? preview = this.preview;
  return preview is DVStudioPageView ? preview : null;
}