logout method

void logout()

Implementation

void logout() {
  onLogout?.call();
}