logout method
Logs out the user Deletes the session from the Appwrite server Deletes the session from local storage
Implementation
Future<void> logout() async {
if (_session == null) {
return;
} else {
await _account.deleteSession(sessionId: _session!.$id);
_session = null;
_storage.remove('session');
}
}