DVSessionSignal class

DV.Session: this device's session, as a read-only signal.

There is no setter anywhere on it. The session is what the server issued and last confirmed, so only the installed DVSessionClient changes it -- on sign-in, a completed second factor, a launch's check, sign-out and a revocation of this device. Empty until the generated runtime installs a client.

Implemented types

Constructors

DVSessionSignal()
const

Properties

changes → Stream<DVSession?>
Emits on every transition. Does not replay the current value; read value for that.
no setteroverride
claims → Map<String, Object?>
The session's server-issued claims.
no setter
current → DVSession?
This device's session, or null when nobody is signed in here.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The session's opaque id: rotated with its token, never a user id.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → DVSession?
The current state.
no setteroverride

Methods

listen(FutureOr<void> onState(DVSession? state)) → StreamSubscription<DVSession?>
Observes transitions. Returns a subscription the caller can cancel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → DVSession?
The current state. Provided so reads look the same as elsewhere in Dartvel, where signals are read with .read().
override
toString() → String
A string representation of this object.
inherited
watch(BuildContext context) → DVSession?
This device's session, rebuilding the widget context belongs to when it changes -- sign-in, a completed second factor, sign-out, a revocation -- the way .watch(context) reads every other signal in a build.

Operators

operator ==(Object other) → bool
The equality operator.
inherited