call method

  1. @override
Future<BaseResponseDonuzModel?> call({
  1. required String code,
})
override

Implementation

@override
Future<BaseResponseDonuzModel?> call({required String code}) async {
  if (code.isEmpty) return null;
  var response =
      await Future.wait([_findEstablishmentById.currentId(), _userToken()]);

  for (var element in response) {
    if (element == null) return null;
  }
  return await _repository.validadeQrCode(
      code: code, tokenClient: response.last, appId: response.first!);
}