OAuthGenerator class

Implemented types

Constructors

OAuthGenerator({required OAuthCredentials oauthCredentials, required Dio dio, bool refresh = false})
OAuthGenerator.fromYamlCredentials({required String credentialsFile, required Dio dio})
factory

Properties

dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
oauthCredentials OAuthCredentials
final
refresh bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate() Future<Token>
generate and persist the OAuth2 refresh token from a single use auth code
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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