call method

  1. @override
Future<List<Prize>?> call()
override

Implementation

@override
Future<List<Prize>?> call() async {
  var establisment = await _findEstablishmentById.currentId();
  if (establisment == null) return null;

  return await _repository.getPrizes(establisment);
}