DuolingoRequestHeader class

This class represents the request header when communicating with the Duolingo API.

Constructors

DuolingoRequestHeader.empty()
Returns the empty DuolingoRequestHeader.
factory
DuolingoRequestHeader.from({required DuolingoCookieJar cookie, required AuthHeader authHeader})
Returns the new instance of DuolingoRequestHeader based on arguments.

Properties

authHeader → AuthHeader
The authorization header
final
The cookie
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, String>
Returns this DuolingoRequestHeader as a map format.
toString() String
A string representation of this object.
override

Operators

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