FakeAuthPersistence class

Fake auth persistence implementation that can be controlled using the currentUserSubject

Inheritance

Constructors

FakeAuthPersistence([AuthUser<OAuthToken>? initialUser])

Properties

currentUser Stream<AuthUser<OAuthToken>?>
Stream that must emit the current user, or null if there is no current user.
no setteroverride
currentUserSubject BehaviorSubject<AuthUser<OAuthToken>?>
latefinal
hashCode int
The hash code for this object.
no setterinherited
initialUser AuthUser<OAuthToken>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentUser(AuthUser<OAuthToken>? user) → void
Set the current user within the persistence layer.
override
toString() String
A string representation of this object.
inherited

Operators

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