opposite property

RangeEdge get opposite

The geometrically opposite of a RangeEdge.

Implementation

RangeEdge get opposite {
  switch (this) {
    case RangeEdge.leading:
      return RangeEdge.trailing;
    case RangeEdge.trailing:
      return RangeEdge.leading;
  }
}