refactor: fixed analyser warnings

pull/234/head
alestiago 3 years ago
parent aabc4f21af
commit df57b371d6

@ -4,9 +4,14 @@ import 'package:pinball_components/pinball_components.dart';
part 'flutter_forest_state.dart'; part 'flutter_forest_state.dart';
// TODO(alestiago): Evaluate if there is any useful documentation that could
// be added to this class.
// ignore: public_member_api_docs
class FlutterForestCubit extends Cubit<FlutterForestState> { class FlutterForestCubit extends Cubit<FlutterForestState> {
FlutterForestCubit() : super(FlutterForestState.initial()); // ignore: public_member_api_docs
FlutterForestCubit() : super(const FlutterForestState.initial());
/// Event added when a bumper contacts with a ball.
void onBumperActivated(DashNestBumper dashNestBumper) { void onBumperActivated(DashNestBumper dashNestBumper) {
emit( emit(
state.copyWith( state.copyWith(
@ -15,6 +20,7 @@ class FlutterForestCubit extends Cubit<FlutterForestState> {
); );
} }
/// Event added after the bonus is activated.
void onBonusApplied() { void onBonusApplied() {
emit( emit(
state.copyWith(activatedBumpers: const {}), state.copyWith(activatedBumpers: const {}),

@ -139,7 +139,7 @@ class DebugPinballGame extends PinballGame with FPSCounter, TapDetector {
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {
await super.onLoad(); await super.onLoad();
// await _loadBackground(); await _loadBackground();
await add(_DebugInformation()); await add(_DebugInformation());
} }

@ -1,10 +1,7 @@
// ignore_for_file: cascade_invocations // ignore_for_file: cascade_invocations
import 'package:bloc_test/bloc_test.dart';
import 'package:flame_test/flame_test.dart'; import 'package:flame_test/flame_test.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pinball/game/game.dart'; import 'package:pinball/game/game.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';

Loading…
Cancel
Save