toPresentationImageAlignment function
Implementation
PresentationImageAlignment toPresentationImageAlignment(int? index) {
switch (index) {
case 0:
return PresentationImageAlignment.left;
case 1:
return PresentationImageAlignment.center;
case 2:
return PresentationImageAlignment.right;
}
return PresentationImageAlignment.unknown;
}