cancelVote method

Future<void> cancelVote(
  1. TranslationVote vote, {
  2. String? token,
})

Cancel a vote. Parameters

  • vote The vote to cancel.
  • token The token to use for authentication (optional if you have set a global token).

Implementation

Future<void> cancelVote(TranslationVote vote, {String? token}) async {
  await httpClient.delete('/translate/vote/${vote.uuid}');
}