PhotoCubit constructor Null safety

PhotoCubit(
  1. {required GetPhoto getPhoto}
)

Creates the cubit.

Implementation

PhotoCubit({
  required GetPhoto getPhoto,
})  : _getPhoto = getPhoto,
      super(const PhotoState.initial());