OverviewResponse class

This class represents the Overview API response entity in the Duolingo API.

Based on the learning-in-progress data of the authenticated user, the language code being learned will be set to learningLanguage and the language code being used for learning will be set to fromLanguage.

The learned word data in the user's currently selected language will be set to vocabularies.

Example:

void main() async {
 final duolingo = Duolingo.instance;

 final authResponse = await duolingo.authenticate(
   username: 'test_username',
   password: 'test_password',
 );

 final overviewResponse = await duolingo.overview();

 for (final vocabulary in overviewResponse.vocabularies) {
     print(vocabulary.word);
 }
}
Inheritance

Constructors

OverviewResponse.from({required int statusCode, required String reasonPhrase, required Map<String, String> headers, required String languageString, required String fromLanguage, required String learningLanguage, required List<Vocabulary> vocabularies})
Returns the new instance of OverviewResponse based on arguments.

Properties

fromLanguage String
The from language
final
hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>
The http headers
finalinherited
languageString String
The language string
final
learningLanguage String
The learning language
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Status
The http status
finalinherited
vocabularies List<Vocabulary>
The vocabularies
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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