fromPageLayout function
Layout
fromPageLayout(
- 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;
}