logout static method

void logout([
  1. String? id,
  2. String? token
])

Implementation

static void logout ([String? id, String? token]) {
  if (id != null) {
    uid = id;
  }
  if (token != null) {
    deviceToken = token;
  }
  if (uid == null || deviceToken == null) {
    return;
  }
  _request('/users/$uid/tokens/$deviceToken', delete);
}