GamesServiceDio class abstract

Implemented types
Annotations
  • @RestApi()

Constructors

GamesServiceDio(Dio dio)
factory
GamesServiceDio.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
exportGame({required String gameId, bool moves = true, bool pgnInJson = false, bool tags = true, bool clocks = false, bool evals = true, bool accuracy = false, bool opening = false, bool literate = false, String? players}) Future<LichessGame>
Download one game in either PGN or JSON format.
override
exportGamesOfUser({required String username, DateTime? since, DateTime? until, int? max, String? vs, bool? rated, List<PerfType>? perfTypes, LichessColor? color, bool? analysed, bool moves = true, bool pgnInJson = false, bool tags = true, bool clocks = false, bool evals = true, bool accuracy = false, bool opening = false, bool ongoing = false, bool finished = true, bool literate = false, bool lastFen = false, String? players, LichessGameSort? sort}) Stream<LichessGame>
Export games of a 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

Operators

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