toPresentationImageAlignment function

PresentationImageAlignment toPresentationImageAlignment(
  1. int? index
)

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;
}