isColumnOutsideOfGrid method

bool isColumnOutsideOfGrid(
  1. int column,
  2. int columnSpan,
  3. GridPadSpanAnchor anchor
)

Checks if the column with the span = columnSpan and specific anchor is outside the defined grid.

Implementation

bool isColumnOutsideOfGrid(
  int column,
  int columnSpan,
  GridPadSpanAnchor anchor,
) {
  final left = anchor.leftBound(column, columnSpan);
  final right = anchor.rightBound(column, columnSpan);
  return left < 0 || right >= columnCount;
}