revogar method

Future<void> revogar(
  1. Vinculo vinculo
)

Tira o acesso deste responsável. A confirmação é da tela.

Implementation

Future<void> revogar(Vinculo vinculo) async {
  final remote = this.remote;
  if (isClosed || remote == null) return;
  try {
    await remote.revogar(vinculo).timeout(esperaMaxima);
  } on TimeoutException {
    _avisar(
      'Sem conexão agora. A mudança é enviada quando o aparelho voltar a '
      'conectar.',
    );
  } on Object catch (e) {
    _avisar('Não consegui tirar o acesso: $e');
  }
}