Session class

Session of a MyUser being signed-in.

Implemented types
Annotations

Constructors

Session({required SessionId id, required IpAddress ip, required UserAgent userAgent, required PreciseDateTime lastActivatedAt, required SiteDomain siteDomain})
const
Session.fromJson(Map<String, dynamic> json)
Constructs a Session from the provided json.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → SessionId
Unique ID of this Session.
final
ip → IpAddress
IpAddress of the device, that used this Session last time.
final
lastActivatedAt → PreciseDateTime
DateTime when this Session was activated last time (either created or refreshed).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
siteDomain → SiteDomain
SiteDomain of the Site this Session was created on.
final
userAgent → UserAgent
UserAgent of the device, that used this Session last time.
final

Methods

compareTo(Session other) → int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a Map representing this Session.
toString() → String
A string representation of this object.
inherited

Operators

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