SessionManager class

Tracks one active session at a time plus the history of closed ones. Opening a new session auto-closes the previous one.

Constructors

SessionManager({DateTime clock()?})

Properties

active → Session?
no setter
hashCode → int
The hash code for this object.
no setterinherited
history → List<Session>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

byId(String id) → Session?
close(int currentSeq) → Session?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
note(String text) → bool
open(String name, int currentSeq) → Session
toString() → String
A string representation of this object.
inherited

Operators

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