TokenInfo class

Token information extracted from stored tokens.

Constructors

TokenInfo.new({required String accessToken, String? refreshToken, DateTime? expiresAt})
const
TokenInfo.fromTokenData(Map<String, dynamic> data)
Creates TokenInfo from stored token data.
factory

Properties

accessToken String
final
canRefresh bool
Check if refresh is possible.
no setter
expiresAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
Check if the access token is expired or close to expiring.
no setter
refreshToken String?
final
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
toString() String
A string representation of this object.
override

Operators

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