lockSession method
void
lockSession()
Locks the current session for biometric re-authentication.
The scope and database handles remain open for instant unlock. state transitions to AuthLocked.
Implementation
void lockSession() {
final scope = _currentScope;
if (scope == null) return;
final current = _state;
if (current is! AuthAuthenticated) return;
final session = current.session;
scope.markDormant();
_state = AuthLocked(session);
_notifyListeners();
}