AuthenticationRepository class Null safety

A repository to handle AuthenticationStatus.

Constructors

AuthenticationRepository({required IRedditClient reddit})
Create a new AuthenticationRepository using the given reddit instance.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
reddit IRedditClient
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status Stream<AuthenticationStatus>
An updated stream with the user's connection status.
read-only

Methods

dispose() → void
login() Future<void>
Open a login page and retrieve an authorization code. If the user has already signed in before, simply authorize the Reddit singleton.
logout() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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