logout static method

dynamic logout()

Implementation

static logout() {
  service.logout().then((value) {
    if (onLogout != null) {
      onLogout!();
    }
  });
}