-
-
Save red-star25/af95663ac7fcfb2dd7477d6618694c9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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