is2FactorAuthenticated property

bool? get is2FactorAuthenticated

Implementation

bool? get is2FactorAuthenticated => _is2FactorAuthenticated;
set is2FactorAuthenticated (bool? isAuthenticated)

Implementation

set is2FactorAuthenticated(bool? isAuthenticated) {
  if (isAuthenticated == null || isAuthenticated == _is2FactorAuthenticated) {
    return;
  }

  _is2FactorAuthenticated = isAuthenticated;
  EncryptedStorage()
      .update2FactorAuthenticated(isAuthenticated)
      .then((value) {
    notifyListeners();
  });
}