OAuthServiceDio class abstract
Obtaining and revoking OAuth tokens.
- Implemented types
- Annotations
-
- @RestApi()
Constructors
- OAuthServiceDio(Dio dio)
-
factory
- OAuthServiceDio.create({String? accessToken, String baseUrl = 'https://lichess.org'})
-
factory
Properties
- dio → Dio
-
Dio client linked with this service instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
{bool force = false}) → Future< void> -
Close the dio instance associated with this service instance.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeAccessToken(
) → Future< void> -
Revokes the access token sent as Bearer for this request.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited