DVAuthUserSignal class
DV.Auth.user: the signed-in person, as a read-only signal.
Only DV.Auth changes it -- a sign-in, the start-up restore, a sign-out,
a session that ended elsewhere.
- Implemented types
Constructors
- DVAuthUserSignal()
-
const
Properties
-
changes
→ Stream<
DVAuthUser?> -
Emits on every transition. Does not replay the current value; read
value for that.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → DVAuthUser?
-
The current state.
no setteroverride
Methods
-
listen(
FutureOr< void> onState(DVAuthUser? state)) → StreamSubscription<DVAuthUser?> -
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(
) → DVAuthUser? -
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) → DVAuthUser? -
The signed-in person, rebuilding the widget
contextbelongs to when it changes. One subscription per element, however often it rebuilds; the first change after the element went away ends it.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited