AuthenticationDataModel class

Implemented types

Constructors

AuthenticationDataModel.new({required String id, required String token, User? user, String? refreshToken, AuthDeviceInfo? deviceInfo})
AuthenticationDataModel.fromToken(String token)
factory

Properties

deviceInfo AuthDeviceInfo?
final
expired bool
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
final
refreshToken String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
final
user → User?
final

Methods

copyWith({String? id, String? token, User? user, String? refreshToken, AuthDeviceInfo? deviceInfo}) AuthenticationDataModel
override
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

Static Methods

hasTokenExpired(String token, [DateTime? compareAgainst]) bool