authSuccess method

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

Implementation

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