-
-
Save TechieBlossom/75e3e70e4a5179f315b23fec44c02303 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
//1 | |
class MovieCarouselInitial extends MovieCarouselState {} | |
//2 | |
class MovieCarouselError extends MovieCarouselState {} | |
//3 | |
class MovieCarouselLoaded extends MovieCarouselState { | |
final List<MovieEntity> movies; | |
final int defaultIndex; | |
const MovieCarouselLoaded({ | |
this.movies, | |
this.defaultIndex = 0, | |
}): assert(defaultIndex >= 0, 'defaultIndex cannot be less than 0'); | |
@override | |
List<Object> get props => [movies, defaultIndex]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment