call method

  1. @override
Future<BalanceModel?> call(
  1. String clientId
)
override

Implementation

@override
Future<BalanceModel?> call(String clientId) async {
  var response = await _findEstablishmentById.currentId();

  if (response == null) return null;

  var result = await _repository.getBalanceById(
    appId: response.toString(),
    clientId: clientId,
  );

  return result;
}