refactor: ignore public_member_api_docs for cubits

pull/234/head
alestiago 3 years ago
parent e6052fed7e
commit d91bb9c6c4

@ -1,20 +1,16 @@
// ignore_for_file: public_member_api_docs
import 'package:bloc/bloc.dart'; import 'package:bloc/bloc.dart';
part 'alien_bumper_state.dart'; part 'alien_bumper_state.dart';
// TODO(alestiago): Evaluate if there is any useful documentation that could
// be added to this class.
// ignore: public_member_api_docs
class AlienBumperCubit extends Cubit<AlienBumperState> { class AlienBumperCubit extends Cubit<AlienBumperState> {
// ignore: public_member_api_docs
AlienBumperCubit() : super(AlienBumperState.active); AlienBumperCubit() : super(AlienBumperState.active);
/// Event added when the bumper contacts with a ball.
void onBallContacted() { void onBallContacted() {
emit(AlienBumperState.inactive); emit(AlienBumperState.inactive);
} }
/// Event added when the bumper finishes blinking.
void onBlinked() { void onBlinked() {
emit(AlienBumperState.active); emit(AlienBumperState.active);
} }

@ -1,20 +1,16 @@
// ignore_for_file: public_member_api_docs
import 'package:bloc/bloc.dart'; import 'package:bloc/bloc.dart';
part 'google_letter_state.dart'; part 'google_letter_state.dart';
// TODO(alestiago): Evaluate if there is any useful documentation that could
// be added to this class.
// ignore: public_member_api_docs
class GoogleLetterCubit extends Cubit<GoogleLetterState> { class GoogleLetterCubit extends Cubit<GoogleLetterState> {
// ignore: public_member_api_docs
GoogleLetterCubit() : super(GoogleLetterState.inactive); GoogleLetterCubit() : super(GoogleLetterState.inactive);
/// Event added when the letter contacts with a ball.
void onBallContacted() { void onBallContacted() {
emit(GoogleLetterState.active); emit(GoogleLetterState.active);
} }
/// Event added when the letter should return to its initial configuration.
void onReset() { void onReset() {
emit(GoogleLetterState.inactive); emit(GoogleLetterState.inactive);
} }

@ -1,20 +1,16 @@
// ignore_for_file: public_member_api_docs
import 'package:bloc/bloc.dart'; import 'package:bloc/bloc.dart';
part 'sparky_bumper_state.dart'; part 'sparky_bumper_state.dart';
// TODO(alestiago): Evaluate if there is any useful documentation that could
// be added to this class.
// ignore: public_member_api_docs
class SparkyBumperCubit extends Cubit<SparkyBumperState> { class SparkyBumperCubit extends Cubit<SparkyBumperState> {
// ignore: public_member_api_docs
SparkyBumperCubit() : super(SparkyBumperState.active); SparkyBumperCubit() : super(SparkyBumperState.active);
/// Event added when the bumper contacts with a ball.
void onBallContacted() { void onBallContacted() {
emit(SparkyBumperState.inactive); emit(SparkyBumperState.inactive);
} }
/// Event added when the bumper finishes blinking.
void onBlinked() { void onBlinked() {
emit(SparkyBumperState.active); emit(SparkyBumperState.active);
} }

Loading…
Cancel
Save