PuzzlesServiceDio class abstract

Read information about puzzles.

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

Implemented types
Annotations
  • @RestApi()

Constructors

PuzzlesServiceDio(Dio dio)
factory
PuzzlesServiceDio.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

getDailyPuzzle() Future<LichessPuzzle>
Get the Daily Puzzle.
override
getPuzzleActivity({int? max}) Stream<LichessPuzzleActivity>
Download your puzzle activity.
override
getPuzzleById({required String id}) Future<LichessPuzzle>
Get a puzzle by its ID.
override
getPuzzleDashboard({int? days = 30}) Future<LichessPuzzleDashboard>
Get your puzzle dashboard.
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