toHeightTypePortrait function
Implementation
HeightTypePortrait toHeightTypePortrait(int? index) {
switch (index) {
case 0:
return HeightTypePortrait.absoluteHeight;
case 1:
return HeightTypePortrait.percentageHeight;
}
return HeightTypePortrait.unknown;
}