navMainDirection property

MainAxisAlignment get navMainDirection

Implementation

MainAxisAlignment get navMainDirection {
  switch (positionType) {
    case ViewPositionType.center:
    case ViewPositionType.centerFlexX:
    case ViewPositionType.centerFlexY:
    case ViewPositionType.centerFill:
      return MainAxisAlignment.center;
    case ViewPositionType.left:
    case ViewPositionType.leftFlex:
      return MainAxisAlignment.spaceAround;
    case ViewPositionType.leftTop:
      return MainAxisAlignment.start;
    case ViewPositionType.leftBottom:
      return MainAxisAlignment.end;
    case ViewPositionType.right:
    case ViewPositionType.rightFlex:
      return MainAxisAlignment.spaceAround;
    case ViewPositionType.rightTop:
      return MainAxisAlignment.start;
    case ViewPositionType.rightBottom:
      return MainAxisAlignment.end;
    case ViewPositionType.top:
    case ViewPositionType.topFlex:
      return MainAxisAlignment.spaceAround;
    case ViewPositionType.topLeft:
      return MainAxisAlignment.start;
    case ViewPositionType.topRight:
      return MainAxisAlignment.end;
    case ViewPositionType.bottom:
    case ViewPositionType.bottomFlex:
      return MainAxisAlignment.spaceAround;
    case ViewPositionType.bottomLeft:
      return MainAxisAlignment.start;
    case ViewPositionType.bottomRight:
      return MainAxisAlignment.end;
  }
}