GetAllAlbums constructor Null safety

GetAllAlbums(
  1. {required AlbumRepository repository}
)

Creates the use case.

Implementation

GetAllAlbums({
  required AlbumRepository repository,
}) : _repository = repository;