Token class

The Token class represents a token with a string value, origin information, and an expiration date.

Constructors

Token({required String tokenString, required TokenOrigin origin, required DateTime expirationDate})
Token.fromMap(Map map)
Token.fromMap(Map map) is a named constructor that creates a new instance of the Token class from a Map object. It takes a Map object as an argument and uses its values to initialize the properties of the Token object.

Properties

expirationDate DateTime
final
hashCode int
The hash code for this object.
no setterinherited
origin TokenOrigin
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenString String
final

Methods

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

Operators

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