PhotosCubit constructor Null safety

PhotosCubit(
  1. {required GetAlbumPhotos getAlbumPhotos,
  2. required GetAllPhotos getAllPhotos}
)

Creates the cubit.

Implementation

PhotosCubit({
  required GetAlbumPhotos getAlbumPhotos,
  required GetAllPhotos getAllPhotos,
})  : _getAlbumPhotos = getAlbumPhotos,
      _getAllPhotos = getAllPhotos,
      super(const PhotosState.initial());