AppToken class

A class representing an application token, containing access and refresh tokens.

This class extends Equatable for value comparison and provides a constructor for creating instances from a list of Cookies.

Constructors

AppToken({String? accessToken, String? refreshToken})
Constructs an instance of AppToken.
const
AppToken.fromCookies(List<Cookie> cookies)
Constructs an instance of AppToken from a list of Cookies.

Properties

accessToken → String?
The access token.
final
hashCode → int
The hash code for this object.
no setterinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
refreshToken → String?
The refresh token.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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

Operators

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

Constants

accessTokenKey → const String
refreshTokenKey → const String
tenantIdKey → const String