From d93414be5086de0faa6bc75935091eb318d9fcc5 Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 8 Mar 2022 12:34:22 +0000 Subject: [PATCH] refactor: removed unecessary parenthesis --- lib/game/pinball_game.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index 243e3826..ef51656a 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -32,8 +32,7 @@ class PinballGame extends Forge2DGame with FlameBloc, KeyboardEvents { await add( _leftFlipper = Flipper( position: Vector2( - (flippersPosition.x - (Flipper.width / 2)) - - (spaceBetweenFlippers / 2), + flippersPosition.x - (Flipper.width / 2) - (spaceBetweenFlippers / 2), flippersPosition.y, ), side: BoardSide.left, @@ -53,8 +52,7 @@ class PinballGame extends Forge2DGame with FlameBloc, KeyboardEvents { await add( _rightFlipper = Flipper( position: Vector2( - (flippersPosition.x + (Flipper.width / 2)) + - (spaceBetweenFlippers / 2), + flippersPosition.x + (Flipper.width / 2) + (spaceBetweenFlippers / 2), flippersPosition.y, ), side: BoardSide.right,