logout method

Future<void> logout()

Removes the current api key from the database

Implementation

Future<void> logout() async {
  try {
    await _delete('/api/api_key/$_apiKey');
    // ignore: empty_catches
  } catch (e) {}
}