call method Null safety

  1. @override
Future<Result<Photo>> call(
  1. GetPhotoParams params
)
override

Executes use case for parameters.

Implementation

@override
Future<Result<Photo>> call(GetPhotoParams params) {
  return _repository.getPhoto(params.photoId);
}