SharedPrefOAuthPersistence class

Persistence for OAuth token users using shared preferences for storage

Inheritance

Constructors

SharedPrefOAuthPersistence(StreamingSharedPreferences prefs)

Properties

currentUser Stream<AuthUser<OAuthToken>?>
Stream that must emit the current user, or null if there is no current user.
latefinal
currentUserPref Preference<String?>
latefinal
hashCode int
The hash code for this object.
no setterinherited
prefs StreamingSharedPreferences
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