call method
Implementation
@override
Future<BaseResponseDonuzModel> call({required User user}) async {
var response = await Future.wait(
[_findEstablishmentById.currentId(), _getLoggedUserToken()]);
for (var element in response) {
if (element == null) {
return BaseResponseDonuzModel(
status: 500, mensagem: "Não foi possivel realizar sua requisição");
}
}
return await _repository.updateUser(
user: user,
appId: response.first!,
tokenClient: response.last,
);
}