topBound method

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

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

Implementation

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