SessionRecord class
Session record returned from session queries.
Constructors
- SessionRecord({required String sessionId, required String subjectId, required String mode, required int createdAtUtc, required int startUtc, int? endedAtUtc, String state = 'active', String appId = '', String appVersion = '', String deviceId = '', String platform = 'flutter'})
-
const
-
SessionRecord.fromMap(Map<
String, dynamic> map) -
factory
Properties
- appId → String
-
final
- appVersion → String
-
final
- createdAtUtc → int
-
final
- deviceId → String
-
final
- endedAtUtc → int?
-
nullwhile the session is still active; set to the runtime'sended_at_msonce the session is closed.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
True iff the session is still marked
'active'in storage. Used by Synheart.sweepOrphanSessions to find candidates.no setter - mode → String
-
final
- platform → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
final
- startUtc → int
-
final
- state → String
-
'active'while a session is in flight;'closed'oncestopSession(or an orphan sweep) has finalized it.final - subjectId → 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