bottomBound method

int bottomBound(
  1. int row,
  2. int span
)

Bottom row index for a specific row and span base on the caller anchor.

Implementation

int bottomBound(int row, int span) {
  switch (vertical) {
    case VerticalAnchor.top:
      return row + span - 1;
    case VerticalAnchor.bottom:
      return row;
  }
}