refactor: removed trailing commas

pull/416/head
alestiago 3 years ago
parent 29d7f3aca9
commit 1b1a31c877

@ -6,11 +6,7 @@ part 'spaceship_ramp_state.dart';
class SpaceshipRampCubit extends Cubit<SpaceshipRampState> { class SpaceshipRampCubit extends Cubit<SpaceshipRampState> {
SpaceshipRampCubit() : super(const SpaceshipRampState.initial()); SpaceshipRampCubit() : super(const SpaceshipRampState.initial());
void onAscendingBallEntered() { void onAscendingBallEntered() => emit(state.copyWith(hits: state.hits + 1));
emit(
state.copyWith(hits: state.hits + 1),
);
}
void onProgressed() { void onProgressed() {
final index = ArrowLightState.values.indexOf(state.lightState); final index = ArrowLightState.values.indexOf(state.lightState);
@ -22,9 +18,5 @@ class SpaceshipRampCubit extends Cubit<SpaceshipRampState> {
); );
} }
void onReset() { void onReset() => emit(const SpaceshipRampState.initial());
emit(
const SpaceshipRampState.initial(),
);
}
} }

Loading…
Cancel
Save