chore: analysis error

pull/40/head
RuiAlonso 4 years ago
parent 8643192fc3
commit 24ac3ad323

@ -80,7 +80,6 @@ class RampOpeningBallContactCallback<Opening extends RampOpening>
ball.layer = layer;
} else {
ballsInside.remove(ball);
ball.layer = Layer.board;
}
}
@ -96,5 +95,6 @@ class RampOpeningBallContactCallback<Opening extends RampOpening>
if (isBallOutsideOpening) ball.layer = Layer.board;
*/
if (!ballsInside.contains(ball)) ball.layer = Layer.board;
}
}

@ -251,8 +251,8 @@ void main() {
expect(callback.ballsInside.first, ball);
// TODO(ruimiguel): check what happens with ball that slightly touch
// Opening and goes out again. With InitialPosition change now doesn't work
// position.y comparison
// Opening and goes out again. With InitialPosition change now doesn't
// work position.y comparison
callback.end(ball, area, MockContact());
//expect(callback.ballsInside.isEmpty, true);
});
@ -282,8 +282,8 @@ void main() {
verify(() => ball.layer = Layer.jetpack).called(1);
// TODO(ruimiguel): check what happens with ball that slightly touch
// Opening and goes out again. With InitialPosition change now doesn't work
// position.y comparison
// Opening and goes out again. With InitialPosition change now doesn't
// work position.y comparison
callback.end(ball, area, MockContact());
//verify(() => ball.layer = Layer.board);
});

Loading…
Cancel
Save