shouldMoveX method
Implementation
bool shouldMoveX(Offset move) {
_HitCorners hitCornersX = this.hitCornersX();
if (hitCornersX.hasHitBoth) {
return false;
}
if (hitCornersX.hasHitAny) {
if (hitCornersX.hasHitMax) {
return move.dx < 0;
}
return move.dx > 0;
}
return true;
}