fromPageLayout function

Layout fromPageLayout(
  1. PageLayout? pageLayout
)

Implementation

Layout fromPageLayout(PageLayout? pageLayout) {
  switch (pageLayout) {
    case PageLayout.gridView:
      return Layout.gridView;
    case PageLayout.listView:
      return Layout.listView;
    case PageLayout.onlyTheFirstComponent:
      return Layout.onlyTheFirstComponent;
    case PageLayout.unknown:
      return Layout.unknown;
    case null:
      break;
  }
  return Layout.unknown;
}