alignment property

AlignmentGeometry get alignment

Get the alignment based on position

Implementation

AlignmentGeometry get alignment {
  switch (position) {
    case SubZeroBadgePosition.topRight:
      return Alignment.topRight;
    case SubZeroBadgePosition.topLeft:
      return Alignment.topLeft;
    case SubZeroBadgePosition.bottomRight:
      return Alignment.bottomRight;
    case SubZeroBadgePosition.bottomLeft:
      return Alignment.bottomLeft;
  }
}