opposite property

Corner get opposite

The geometrically opposite of a Corner.

See also:

Implementation

Corner get opposite {
  switch (this) {
    case Corner.leftTop:
      return Corner.rightBottom;
    case Corner.rightTop:
      return Corner.leftBottom;
    case Corner.leftBottom:
      return Corner.rightTop;
    case Corner.rightBottom:
      return Corner.leftTop;
  }
}