Skip to content

Instantly share code, notes, and snippets.

@red-star25
Created January 6, 2022 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save red-star25/af95663ac7fcfb2dd7477d6618694c9a to your computer and use it in GitHub Desktop.
Save red-star25/af95663ac7fcfb2dd7477d6618694c9a to your computer and use it in GitHub Desktop.
part of 'joke_bloc.dart';
@immutable
abstract class JokeState extends Equatable {}
class JokeLoadingState extends JokeState {
@override
List<Object?> get props => [];
}
class JokeLoadedState extends JokeState {
final JokeModel joke;
JokeLoadedState(this.joke);
@override
List<Object?> get props => [joke];
}
class JokeErrorState extends JokeState {
final String error;
JokeErrorState(this.error);
@override
List<Object?> get props => [error];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment