chore: remove start and end variables

pull/224/head
Allison Ryan 3 years ago
parent 189431ed2a
commit 068eb12701

@ -13,9 +13,11 @@ class Drain extends BodyComponent {
@override @override
Body createBody() { Body createBody() {
final start = BoardDimensions.bounds.bottomLeft.toVector2(); final shape = EdgeShape()
final end = BoardDimensions.bounds.bottomRight.toVector2(); ..set(
final shape = EdgeShape()..set(start, end); BoardDimensions.bounds.bottomLeft.toVector2(),
BoardDimensions.bounds.bottomRight.toVector2(),
);
final fixtureDef = FixtureDef(shape, isSensor: true); final fixtureDef = FixtureDef(shape, isSensor: true);

Loading…
Cancel
Save