toPageLayout function

PageLayout toPageLayout(
  1. int? index
)

Implementation

PageLayout toPageLayout(int? index) {
  switch (index) {
    case 0:
      return PageLayout.gridView;
    case 1:
      return PageLayout.listView;
    case 2:
      return PageLayout.onlyTheFirstComponent;
  }
  return PageLayout.unknown;
}