toHeaderSelection function
Implementation
HeaderSelection toHeaderSelection(int? index) {
switch (index) {
case 0:
return HeaderSelection.title;
case 1:
return HeaderSelection.image;
case 2:
return HeaderSelection.icon;
case 3:
return HeaderSelection.none;
}
return HeaderSelection.unknown;
}