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