RelationsServiceDio class abstract

Access relations between users.

https://lichess.org/api#tag/Relations

Implemented types
Annotations
  • @RestApi()

Constructors

RelationsServiceDio(Dio dio)
factory
RelationsServiceDio.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
followUser({required String username}) Future<void>
Follow a player, adding them to your list of Lichess friends.
override
getFollowing() Future<List<User>>
Get users followed by the logged in user.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unfollowUser({required String username}) Future<void>
Unfollow a player, removing them from your list of Lichess friends.
override

Operators

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