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.center:
    case AnchorAlign.none:
      return Alignment.center;
  }
}