toDialogLayout function
Implementation
DialogLayout toDialogLayout(int? index) {
switch (index) {
case 0:
return DialogLayout.gridView;
case 1:
return DialogLayout.listView;
case 2:
return DialogLayout.onlyTheFirstComponent;
}
return DialogLayout.unknown;
}