AccountServiceDio class abstract

Implemented types
Annotations
  • @RestApi()

Constructors

AccountServiceDio(Dio dio)
factory
AccountServiceDio.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
getEmailAddress() Future<String>
Read the email address of the logged in user.
override
getKidModeStatus() Future<bool>
Read the kid mode status of the logged in user.
override
getMyPreferences() Future<UserPreferences>
Read the preferences of the logged in user.
override
getProfile() Future<User>
Public information about the logged in user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMyKidModeStatus({required bool enableKidMode}) Future<void>
Set the kid mode status of the logged in user.
override
toString() String
A string representation of this object.
inherited

Operators

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