OAuth2Token class Null safety

Standard OAuth2Token as defined by https://www.oauth.com/oauth2-servers/access-tokens/access-token-response/

Constructors

OAuth2Token({required String accessToken, String? tokenType = 'bearer', int? expiresIn, String? refreshToken, String? scope})
{macro oauth2_token}
const

Properties

accessToken String
The access token string as issued by the authorization server.
final
expiresIn int?
If the access token expires, the server should reply with the duration of time the access token is granted for.
final
hashCode int
The hash code for this object.
read-only, inherited
refreshToken String?
Token which applications can use to obtain another access token.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope String?
Application scope granted as defined in https://oauth.net/2/scope
final
tokenType String?
The type of token this is, typically just the string “bearer”.
final

Methods

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

Operators

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