authLogout method

void authLogout({
  1. bool unlock = false,
})

Implementation

void authLogout({bool unlock = false}) {
  value = value.copyWith(authenticated: false);
  _authenticationEventsController
      .add(SecureApplicationAuthenticationStatus.LOGOUT);
  if (unlock) {
    this.unlock();
  }
  notifyListeners();
}