chore: analysis fixes

pull/40/head
RuiAlonso 4 years ago
parent d6f2cf9074
commit 90d4a4dc4a

@ -42,7 +42,7 @@ class PinballGame extends Forge2DGame
await _addGameBoundaries(); await _addGameBoundaries();
unawaited(_addPlunger()); unawaited(_addPlunger());
//unawaited(_addPaths()); unawaited(_addPaths());
// Corner wall above plunger so the ball deflects into the rest of the // Corner wall above plunger so the ball deflects into the rest of the
// board. // board.

@ -74,7 +74,7 @@ void main() {
flameTester.test( flameTester.test(
'has default filter maskBits', 'has default filter maskBits',
(game) async { (game) async {
final ball = Ball(position: Vector2.zero()); final ball = Ball();
await game.ensureAdd(ball); await game.ensureAdd(ball);
final fixture = ball.body.fixtures[0]; final fixture = ball.body.fixtures[0];
@ -158,7 +158,7 @@ void main() {
(game) async { (game) async {
const newLayer = Layer.jetpack; const newLayer = Layer.jetpack;
final ball = Ball(position: Vector2.zero()); final ball = Ball();
await game.ensureAdd(ball); await game.ensureAdd(ball);
final fixture = ball.body.fixtures[0]; final fixture = ball.body.fixtures[0];

@ -131,7 +131,6 @@ void main() {
'has default filter categoryBits when not modified', 'has default filter categoryBits when not modified',
(game) async { (game) async {
final pathway = Pathway.straight( final pathway = Pathway.straight(
position: Vector2.zero(),
start: Vector2(10, 10), start: Vector2(10, 10),
end: Vector2(20, 20), end: Vector2(20, 20),
width: width, width: width,
@ -154,7 +153,6 @@ void main() {
(game) async { (game) async {
const layer = Layer.jetpack; const layer = Layer.jetpack;
final pathway = Pathway.straight( final pathway = Pathway.straight(
position: Vector2.zero(),
start: Vector2(10, 10), start: Vector2(10, 10),
end: Vector2(20, 20), end: Vector2(20, 20),
width: width, width: width,

Loading…
Cancel
Save