DropboxToken class

Represents an OAuth2 token for the Dropbox API.

Constructors

DropboxToken.new({required String accessToken, String? refreshToken, required String tokenType, required DateTime expiresIn})
DropboxToken.fromJson(Map<String, dynamic> json)
Creates a DropboxToken from a JSON map.
factory

Properties

accessToken String
The access token for making API calls.
final
expiresIn DateTime
The timestamp when the access token expires.
final
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
Checks if the token is expired or close to expiring.
no setter
refreshToken String?
The token used to obtain a new access token.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType String
The type of token (e.g., 'bearer').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the DropboxToken to a JSON map for storage.
toString() String
A string representation of this object.
inherited

Operators

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