isRowOutsideOfGrid method

bool isRowOutsideOfGrid(
  1. int row,
  2. int rowSpan,
  3. GridPadSpanAnchor anchor
)

Checks if the row with the span = rowSpan and specific anchor is outside the defined grid.

Implementation

bool isRowOutsideOfGrid(int row, int rowSpan, GridPadSpanAnchor anchor) {
  final top = anchor.topBound(row, rowSpan);
  final bottom = anchor.bottomBound(row, rowSpan);
  return top < 0 || bottom >= rowCount;
}