Created
July 2, 2020 21:55
-
-
Save irvine5k/786a9c09802ac6df87f06574d9e8970e to your computer and use it in GitHub Desktop.
Creating Cubit
This file contains hidden or 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
import 'package:cubit/cubit.dart'; | |
import 'package:movie_app/src/movies/movie_repository.dart'; | |
import 'package:movie_app/src/movies/movie_state.dart'; | |
class MoviesCubit extends Cubit<MoviesState> { | |
MoviesCubit({this.repository}) : super(InitialState()) | |
final MovieRepository repository; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment