rightBound method

int rightBound(
  1. int column,
  2. int span
)

Right column index for a specific column and span base on the caller anchor.

Implementation

int rightBound(int column, int span) {
  switch (horizontal) {
    case HorizontalAnchor.start:
      return column + span - 1;
    case HorizontalAnchor.end:
      return column;
  }
}