revokeApiKey method

void revokeApiKey(
  1. String key
)

Revokes the API key with the given key.

  • Parameters:

    • key: The API key to be revoked.
  • Returns: void.

Implementation

void revokeApiKey(String key) {
  _apiKeys.removeWhere((apiKey) => apiKey.key == key);
}