rotationAlignmentFor static method

AlignmentGeometry rotationAlignmentFor(
  1. AnchorAlign anchorAlign
)

Implementation

static AlignmentGeometry rotationAlignmentFor(AnchorAlign anchorAlign) {
  switch (anchorAlign) {
    case AnchorAlign.left:
      return Alignment.centerRight;
    case AnchorAlign.top:
      return Alignment.bottomCenter;
    case AnchorAlign.right:
      return Alignment.centerLeft;
    case AnchorAlign.bottom:
      return Alignment.topCenter;
    case AnchorAlign.topLeft:
      return Alignment.bottomRight;
    case AnchorAlign.topRight:
      return Alignment.bottomLeft;
    case AnchorAlign.bottomLeft:
      return Alignment.topRight;
    case AnchorAlign.bottomRight:
      return Alignment.topLeft;
    case AnchorAlign.center:
    default:
      return Alignment.center;
  }
}