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; ball.layer = layer;
} else { } else {
ballsInside.remove(ball); ballsInside.remove(ball);
ball.layer = Layer.board;
} }
} }
@ -96,5 +95,6 @@ class RampOpeningBallContactCallback<Opening extends RampOpening>
if (isBallOutsideOpening) ball.layer = Layer.board; 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); expect(callback.ballsInside.first, ball);
// TODO(ruimiguel): check what happens with ball that slightly touch // TODO(ruimiguel): check what happens with ball that slightly touch
// Opening and goes out again. With InitialPosition change now doesn't work // Opening and goes out again. With InitialPosition change now doesn't
// position.y comparison // work position.y comparison
callback.end(ball, area, MockContact()); callback.end(ball, area, MockContact());
//expect(callback.ballsInside.isEmpty, true); //expect(callback.ballsInside.isEmpty, true);
}); });
@ -282,8 +282,8 @@ void main() {
verify(() => ball.layer = Layer.jetpack).called(1); verify(() => ball.layer = Layer.jetpack).called(1);
// TODO(ruimiguel): check what happens with ball that slightly touch // TODO(ruimiguel): check what happens with ball that slightly touch
// Opening and goes out again. With InitialPosition change now doesn't work // Opening and goes out again. With InitialPosition change now doesn't
// position.y comparison // work position.y comparison
callback.end(ball, area, MockContact()); callback.end(ball, area, MockContact());
//verify(() => ball.layer = Layer.board); //verify(() => ball.layer = Layer.board);
}); });

Loading…
Cancel
Save