toRelativeImagePosition function

RelativeImagePosition toRelativeImagePosition(
  1. int? index
)

Implementation

RelativeImagePosition toRelativeImagePosition(int? index) {
  switch (index) {
    case 0:
      return RelativeImagePosition.behind;
    case 1:
      return RelativeImagePosition.inFront;
    case 2:
      return RelativeImagePosition.below;
    case 3:
      return RelativeImagePosition.above;
    case 4:
      return RelativeImagePosition.aside;
  }
  return RelativeImagePosition.unknown;
}