toWidthTypePortrait function
Implementation
WidthTypePortrait toWidthTypePortrait(int? index) {
switch (index) {
case 0:
return WidthTypePortrait.absoluteWidth;
case 1:
return WidthTypePortrait.percentageWidth;
}
return WidthTypePortrait.unknown;
}