style: commas and userData removal

pull/312/head
Allison Ryan 3 years ago
parent 7e262e4b90
commit ee334903c2

@ -53,9 +53,16 @@ class FlapperEntrance extends BodyComponent with InitialPosition, Layered {
@override @override
Body createBody() { Body createBody() {
final shape = EdgeShape()..set(Vector2.zero(), Vector2(0, 3.2)); final shape = EdgeShape()
final fixtureDef = FixtureDef(shape, isSensor: true); ..set(
final bodyDef = BodyDef(position: initialPosition, userData: this); Vector2.zero(),
Vector2(0, 3.2),
);
final fixtureDef = FixtureDef(
shape,
isSensor: true,
);
final bodyDef = BodyDef(position: initialPosition);
return world.createBody(bodyDef)..createFixture(fixtureDef); return world.createBody(bodyDef)..createFixture(fixtureDef);
} }
} }

Loading…
Cancel
Save