# toPresentationRelativeImagePosition function Null safety

PresentationRelativeImagePosition toPresentationRelativeImagePosition(

1. int? index

)

## Implementation

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