From 1b1a31c8779ccef1588127abfbf6c962d51db8ba Mon Sep 17 00:00:00 2001 From: alestiago Date: Mon, 9 May 2022 23:43:41 +0100 Subject: [PATCH] refactor: removed trailing commas --- .../spaceship_ramp/cubit/spaceship_ramp_cubit.dart | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart b/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart index e8cd8034..8dc0f69f 100644 --- a/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart +++ b/packages/pinball_components/lib/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit.dart @@ -6,11 +6,7 @@ part 'spaceship_ramp_state.dart'; class SpaceshipRampCubit extends Cubit { SpaceshipRampCubit() : super(const SpaceshipRampState.initial()); - void onAscendingBallEntered() { - emit( - state.copyWith(hits: state.hits + 1), - ); - } + void onAscendingBallEntered() => emit(state.copyWith(hits: state.hits + 1)); void onProgressed() { final index = ArrowLightState.values.indexOf(state.lightState); @@ -22,9 +18,5 @@ class SpaceshipRampCubit extends Cubit { ); } - void onReset() { - emit( - const SpaceshipRampState.initial(), - ); - } + void onReset() => emit(const SpaceshipRampState.initial()); }