hasHorizontalCollision method
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;
});
}