fromDialogLayout function

Layout fromDialogLayout(
  1. DialogLayout? dialogLayout
)

Implementation

Layout fromDialogLayout(DialogLayout? dialogLayout) {
  switch (dialogLayout) {
    case DialogLayout.gridView:
      return Layout.gridView;
    case DialogLayout.listView:
      return Layout.listView;
    case DialogLayout.onlyTheFirstComponent:
      return Layout.onlyTheFirstComponent;
    case DialogLayout.unknown:
      return Layout.unknown;
    case null:
      break;
  }
  return Layout.unknown;
}