GetAllPhotos constructor Null safety

GetAllPhotos(
  1. {required PhotoRepository repository}
)

Creates the use case.

Implementation

GetAllPhotos({
  required PhotoRepository repository,
}) : _repository = repository;