hasHorizontalCollision method

bool hasHorizontalCollision(
  1. int x,
  2. int y
)

Implementation

bool hasHorizontalCollision(int x, int y) {
  if (this.s.length == 0 || y >= this.s.length) {
    return false;
  }
  var row = this.s[y];
  return row.any((MatrixCell? point) {
    if (point != null && !this.isAllChildrenOnMatrix(point)) {
      return true;
    }
    return false;
  });
}