Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0892a2d

Browse files
author
Chris Yang
authored
[sensors] format dart code based on the new dart formatter (#3809)
1 parent b548ae1 commit 0892a2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/sensors/example/lib/snake.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ class SnakeState extends State<Snake> {
9999
final math.Point<int>? newDirection = currentAcceleration == null
100100
? null
101101
: currentAcceleration.x.abs() < 1.0 && currentAcceleration.y.abs() < 1.0
102-
? null
103-
: (currentAcceleration.x.abs() < currentAcceleration.y.abs())
104-
? math.Point<int>(0, currentAcceleration.y.sign.toInt())
105-
: math.Point<int>(-currentAcceleration.x.sign.toInt(), 0);
102+
? null
103+
: (currentAcceleration.x.abs() < currentAcceleration.y.abs())
104+
? math.Point<int>(0, currentAcceleration.y.sign.toInt())
105+
: math.Point<int>(-currentAcceleration.x.sign.toInt(), 0);
106106
state.step(newDirection);
107107
}
108108
}

0 commit comments

Comments
 (0)